136 lines
No EOL
3.8 KiB
YAML
136 lines
No EOL
3.8 KiB
YAML
alertmanager:
|
|
alertmanagerSpec:
|
|
replicas: 2
|
|
secrets:
|
|
- telegram-api
|
|
config:
|
|
global:
|
|
resolve_timeout: 5m
|
|
templates:
|
|
- '/etc/alertmanager/config/*.tmpl'
|
|
route:
|
|
group_by: ['alertname']
|
|
group_wait: 30s
|
|
group_interval: 30s
|
|
repeat_interval: 24h
|
|
receiver: 'tg1'
|
|
routes:
|
|
- matchers:
|
|
- severity=warning
|
|
receiver: 'tg1'
|
|
- matchers:
|
|
- severity=critical
|
|
receiver: 'tg1'
|
|
receivers:
|
|
- name: tg1
|
|
telegram_configs:
|
|
- bot_token_file: '/etc/alertmanager/secrets/api_key'
|
|
chat_id: -995270884
|
|
api_url: "https://api.telegram.org"
|
|
send_resolved: true
|
|
parse_mode: "HTML"
|
|
message: '{{ template "telegram.aaron" .}}'
|
|
inhibit_rules:
|
|
- source_matchers:
|
|
- severity = critical
|
|
target_matchers:
|
|
- severity = warning
|
|
equal: ['alertname', 'server', 'instance']
|
|
templateFiles:
|
|
telegram.tmpl: |-
|
|
{{ define "telegram.aaron" }}
|
|
{{ range .Alerts }}
|
|
{{ if eq .Status "firing"}}🔥 <b>{{ .Labels.alertname }}</b> 🔥{{ else }}✅ <b>{{ .Labels.alertname }}</b> ✅{{ end }}
|
|
<b> {{ .Annotations.summary }} </b>
|
|
|
|
{{ .Annotations.description }}
|
|
{{ end }}
|
|
{{ end }}
|
|
storage:
|
|
volumeClaimTemplate:
|
|
spec:
|
|
accessModes: ["ReadWriteOnce"]
|
|
resources:
|
|
requests:
|
|
storage: 5Gi
|
|
ingress:
|
|
paths:
|
|
- /
|
|
enabled: true
|
|
ingressClassName: nginx
|
|
hosts:
|
|
- alertmanager.services.yolokube.de
|
|
annotations:
|
|
nginx.org/basic-auth-secret: prometheus-basic-auth-secret
|
|
ingressPerReplica:
|
|
pathType: ImplementationSpecific
|
|
paths:
|
|
- /
|
|
enabled: true
|
|
ingressClassName: nginx
|
|
hostPrefix: alertmanager
|
|
hostDomain: services.yolokube.de
|
|
annotations:
|
|
nginx.org/basic-auth-secret: prometheus-basic-auth-secret
|
|
servicePerReplica:
|
|
enabled: true
|
|
grafana:
|
|
defaultDashboardsTimezone: Europe/Berlin
|
|
ingress:
|
|
enabled: true
|
|
hosts:
|
|
- grafana.services.yolokube.de
|
|
ingressClassName: nginx
|
|
persistence:
|
|
enabled: true
|
|
prometheus-node-exporter:
|
|
prometheus:
|
|
monitor:
|
|
enabled: true
|
|
relabelings:
|
|
- action: replace
|
|
sourceLabels: [__meta_kubernetes_endpoint_node_name]
|
|
targetLabel: node
|
|
extraArgs:
|
|
- '--collector.filesystem.mount-points-exclude=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/.+)($|/)'
|
|
- '--collector.filesystem.fs-types-exclude=^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$'
|
|
- '--collector.textfile.directory=/host/root/var/log/'
|
|
- '--collector.ethtool'
|
|
prometheus:
|
|
servicePerReplica:
|
|
enabled: true
|
|
ingress:
|
|
paths:
|
|
- /
|
|
enabled: true
|
|
ingressClassName: nginx
|
|
hosts:
|
|
- prometheus.services.yolokube.de
|
|
annotations:
|
|
nginx.org/basic-auth-secret: prometheus-basic-auth-secret
|
|
ingressPerReplica:
|
|
pathType: ImplementationSpecific
|
|
paths:
|
|
- /
|
|
enabled: true
|
|
hostPrefix: prometheus
|
|
hostDomain: services.yolokube.de
|
|
annotations:
|
|
nginx.org/basic-auth-secret: prometheus-basic-auth-secret
|
|
prometheusSpec:
|
|
replicas: 2
|
|
storageSpec:
|
|
volumeClaimTemplate:
|
|
spec:
|
|
accessModes: ["ReadWriteOnce"]
|
|
resources:
|
|
requests:
|
|
storage: 10Gi
|
|
ruleNamespaceSelector: {}
|
|
ruleSelectorNilUsesHelmValues: false
|
|
serviceMonitorSelectorNilUsesHelmValues: false
|
|
podMonitorSelectorNilUsesHelmValues: false
|
|
probeSelectorNilUsesHelmValues: false
|
|
scrapeConfigSelectorNilUsesHelmValues: false
|
|
servicePerReplica:
|
|
enabled: true |