FEAT(alertmanager): add Karma to Alertmanager

- Add Karma dashboard for alert aggregation
- Enable alert visualization
This commit is contained in:
2025-12-30 12:17:44 +09:00
parent bc1cf0d223
commit 5002d352fb
3 changed files with 96 additions and 1 deletions

View File

@@ -17,6 +17,10 @@ spec:
- repoURL: https://github.com/Mayne0213/monitoring.git - repoURL: https://github.com/Mayne0213/monitoring.git
targetRevision: main targetRevision: main
ref: values ref: values
- repoURL: https://github.com/Mayne0213/monitoring.git
targetRevision: main
path: alertmanager
kustomize: {}
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
namespace: alertmanager namespace: alertmanager
@@ -39,3 +43,69 @@ spec:
labels: labels:
goldilocks.fairwinds.com/enabled: 'true' goldilocks.fairwinds.com/enabled: 'true'
revisionHistoryLimit: 10 revisionHistoryLimit: 10
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: karma
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://wiremind.github.io/wiremind-helm-charts
chart: karma
targetRevision: 2.11.0
helm:
values: |
fullnameOverride: karma
image:
repository: ghcr.io/prymitive/karma
tag: v0.122
replicaCount: 1
resources:
requests:
cpu: 10m
memory: 32Mi
limits:
memory: 128Mi
service:
type: ClusterIP
port: 8080
env:
- name: ALERTMANAGER_URI
value: "http://alertmanager.alertmanager.svc.cluster.local:9093"
livenessProbe:
httpGet:
path: /health
port: http
readinessProbe:
httpGet:
path: /health
port: http
destination:
server: https://kubernetes.default.svc
namespace: alertmanager
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: false
syncOptions:
- PrunePropagationPolicy=foreground
- PruneLast=true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m
revisionHistoryLimit: 10

24
alertmanager/ingress.yaml Normal file
View File

@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: karma-ingress
namespace: alertmanager
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
ingressClassName: traefik
tls:
- hosts:
- karma0213.kro.kr
secretName: karma-tls
rules:
- host: karma0213.kro.kr
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: karma
port:
number: 8080

View File

@@ -1,3 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: [] resources:
- ingress.yaml