2023-04-20 01:39:36 +02:00
|
|
|
alertmanager:
|
2023-06-20 08:43:48 +02:00
|
|
|
alertmanagerSpec:
|
|
|
|
replicas: 2
|
2023-08-30 21:27:13 +02:00
|
|
|
secrets:
|
2023-08-30 21:32:18 +02:00
|
|
|
- "telegram-api"
|
|
|
|
configMaps:
|
|
|
|
- "templates"
|
2023-08-31 00:29:12 +02:00
|
|
|
storage:
|
|
|
|
volumeClaimTemplate:
|
|
|
|
spec:
|
|
|
|
accessModes: ["ReadWriteOnce"]
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 5Gi
|
|
|
|
useExistingSecret: false
|
2023-08-30 21:27:13 +02:00
|
|
|
config:
|
|
|
|
global:
|
|
|
|
resolve_timeout: 5m
|
|
|
|
templates:
|
2023-09-15 01:43:41 +02:00
|
|
|
- '/etc/alertmanager/configmaps/templates/telegram.tmpl'
|
2023-08-30 21:27:13 +02:00
|
|
|
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:
|
2023-09-15 01:43:41 +02:00
|
|
|
- bot_token_file: '/etc/alertmanager/secrets/telegram-api/api_key'
|
2023-08-30 21:27:13 +02:00
|
|
|
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
|
2023-12-18 17:33:47 +01:00
|
|
|
- severity = info
|
|
|
|
equal: ['node']
|
2023-06-20 08:43:48 +02:00
|
|
|
ingress:
|
2023-06-20 08:54:19 +02:00
|
|
|
paths:
|
|
|
|
- /
|
2023-06-17 09:11:18 +02:00
|
|
|
enabled: true
|
2023-06-20 08:43:48 +02:00
|
|
|
ingressClassName: nginx
|
|
|
|
hosts:
|
|
|
|
- alertmanager.services.yolokube.de
|
|
|
|
annotations:
|
|
|
|
nginx.org/basic-auth-secret: prometheus-basic-auth-secret
|
|
|
|
ingressPerReplica:
|
2023-06-20 09:06:13 +02:00
|
|
|
pathType: ImplementationSpecific
|
2023-06-20 08:56:06 +02:00
|
|
|
paths:
|
|
|
|
- /
|
2023-06-20 08:43:48 +02:00
|
|
|
enabled: true
|
|
|
|
ingressClassName: nginx
|
|
|
|
hostPrefix: alertmanager
|
|
|
|
hostDomain: services.yolokube.de
|
|
|
|
annotations:
|
|
|
|
nginx.org/basic-auth-secret: prometheus-basic-auth-secret
|
|
|
|
servicePerReplica:
|
|
|
|
enabled: true
|
2023-11-26 20:41:43 +01:00
|
|
|
podAntiAffinity: "soft"
|
2023-06-20 08:43:48 +02:00
|
|
|
grafana:
|
|
|
|
defaultDashboardsTimezone: Europe/Berlin
|
|
|
|
ingress:
|
|
|
|
enabled: true
|
|
|
|
hosts:
|
|
|
|
- grafana.services.yolokube.de
|
|
|
|
ingressClassName: nginx
|
2023-06-29 12:02:54 +02:00
|
|
|
persistence:
|
|
|
|
enabled: true
|
2023-04-20 06:03:40 +02:00
|
|
|
prometheus-node-exporter:
|
2023-06-23 19:19:48 +02:00
|
|
|
prometheus:
|
|
|
|
monitor:
|
|
|
|
enabled: true
|
|
|
|
relabelings:
|
2023-06-24 07:28:58 +02:00
|
|
|
- action: replace
|
|
|
|
sourceLabels: [__meta_kubernetes_endpoint_node_name]
|
2023-06-23 19:19:48 +02:00
|
|
|
targetLabel: node
|
2023-04-20 06:03:40 +02:00
|
|
|
extraArgs:
|
2023-06-20 08:43:48 +02:00
|
|
|
- '--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)$'
|
2023-04-20 06:03:40 +02:00
|
|
|
- '--collector.textfile.directory=/host/root/var/log/'
|
|
|
|
- '--collector.ethtool'
|
2023-06-20 08:43:48 +02:00
|
|
|
prometheus:
|
|
|
|
servicePerReplica:
|
|
|
|
enabled: true
|
|
|
|
ingress:
|
2023-06-20 08:54:19 +02:00
|
|
|
paths:
|
|
|
|
- /
|
2023-06-20 08:43:48 +02:00
|
|
|
enabled: true
|
|
|
|
ingressClassName: nginx
|
|
|
|
hosts:
|
|
|
|
- prometheus.services.yolokube.de
|
|
|
|
annotations:
|
|
|
|
nginx.org/basic-auth-secret: prometheus-basic-auth-secret
|
|
|
|
ingressPerReplica:
|
2023-06-20 09:06:13 +02:00
|
|
|
pathType: ImplementationSpecific
|
2023-06-20 08:56:06 +02:00
|
|
|
paths:
|
|
|
|
- /
|
2023-06-20 08:43:48 +02:00
|
|
|
enabled: true
|
|
|
|
hostPrefix: prometheus
|
|
|
|
hostDomain: services.yolokube.de
|
|
|
|
annotations:
|
|
|
|
nginx.org/basic-auth-secret: prometheus-basic-auth-secret
|
|
|
|
prometheusSpec:
|
|
|
|
replicas: 2
|
2023-06-20 13:15:28 +02:00
|
|
|
storageSpec:
|
|
|
|
volumeClaimTemplate:
|
|
|
|
spec:
|
|
|
|
accessModes: ["ReadWriteOnce"]
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 10Gi
|
2023-10-23 18:05:29 +02:00
|
|
|
ruleNamespaceSelector:
|
|
|
|
matchLabels:
|
|
|
|
prometheus: yolokube
|
2023-06-20 13:15:28 +02:00
|
|
|
ruleSelectorNilUsesHelmValues: false
|
|
|
|
serviceMonitorSelectorNilUsesHelmValues: false
|
|
|
|
podMonitorSelectorNilUsesHelmValues: false
|
|
|
|
probeSelectorNilUsesHelmValues: false
|
|
|
|
scrapeConfigSelectorNilUsesHelmValues: false
|
2023-06-20 08:43:48 +02:00
|
|
|
servicePerReplica:
|
2023-11-26 20:41:43 +01:00
|
|
|
enabled: true
|
|
|
|
podAntiAffinity: "soft"
|