2022-04-11 06:57:04 +00:00
|
|
|
# see https://blog.ediri.io/kube-prometheus-stack-and-argocd-23-how-to-remove-a-workaround
|
2022-04-13 06:02:54 +00:00
|
|
|
local helmapp = import "../../_templates/argo_helm_app.libsonnet";
|
|
|
|
local argoapp = import "../../_templates/argo_app.libsonnet";
|
2022-04-09 13:16:57 +00:00
|
|
|
|
|
|
|
local vars = {
|
2022-04-15 13:04:11 +00:00
|
|
|
"version": "34.10.0",
|
2022-04-09 13:16:57 +00:00
|
|
|
"namespace": "metrics"
|
|
|
|
};
|
2022-04-04 16:24:35 +00:00
|
|
|
|
|
|
|
[
|
2022-04-09 13:16:57 +00:00
|
|
|
argoapp + {
|
|
|
|
name:: "prometheus-crds",
|
|
|
|
namespace:: vars.namespace,
|
|
|
|
repo:: "https://github.com/prometheus-community/helm-charts.git",
|
|
|
|
path:: "charts/kube-prometheus-stack/crds/",
|
|
|
|
version:: "kube-prometheus-stack-" + vars.version,
|
2022-04-11 20:34:03 +00:00
|
|
|
syncOptions:: ["CreateNamespace=true", "Replace=true"],
|
|
|
|
sync_wave:: -1,
|
2022-04-09 13:16:57 +00:00
|
|
|
},
|
2022-04-04 16:24:35 +00:00
|
|
|
helmapp + {
|
|
|
|
name:: "prometheus-grafana",
|
|
|
|
namespace: vars.namespace,
|
|
|
|
repo:: "https://prometheus-community.github.io/helm-charts",
|
|
|
|
chart:: "kube-prometheus-stack",
|
|
|
|
version:: vars.version,
|
|
|
|
skipCrds:: true,
|
|
|
|
values:: |||
|
2022-04-14 21:30:46 +00:00
|
|
|
fullnameOverride: prometheus-stack
|
2022-04-04 16:24:35 +00:00
|
|
|
kubeProxy:
|
|
|
|
enabled: false
|
|
|
|
kubeScheduler:
|
|
|
|
enabled: false
|
|
|
|
kubeControllerManager:
|
|
|
|
enabled: false
|
|
|
|
alertmanager:
|
|
|
|
config:
|
|
|
|
global:
|
|
|
|
resolve_timeout: 5m
|
|
|
|
route:
|
|
|
|
group_by: ['alertname', 'cluster']
|
|
|
|
group_wait: 30s
|
|
|
|
group_interval: 5m
|
|
|
|
repeat_interval: 12h
|
|
|
|
receiver: 'pushover'
|
|
|
|
routes:
|
|
|
|
- receiver: 'null'
|
|
|
|
matchers:
|
|
|
|
- alertname="Watchdog"
|
|
|
|
- receiver: 'null'
|
|
|
|
matchers:
|
|
|
|
- alertname="InfoInhibitor"
|
|
|
|
receivers:
|
|
|
|
- name: 'null'
|
|
|
|
- name: 'pushover'
|
|
|
|
pushover_configs:
|
|
|
|
- user_key: x9PipXt1zGOU31OJH9Osv18BFrlRhw
|
|
|
|
token: aqvce1uukerhxhayxdq85wgtdh2c5r
|
|
|
|
prometheus:
|
|
|
|
prometheusSpec:
|
|
|
|
storageSpec:
|
|
|
|
volumeClaimTemplate:
|
|
|
|
spec:
|
|
|
|
accessModes: ["ReadWriteOnce"]
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 10Gi
|
|
|
|
|||
|
|
|
|
}
|
|
|
|
]
|