FORMAT: use jsonnet for templating
* add jsonnet templates * rewrite all charts to jsonnet
This commit is contained in:
parent
bf2aa26963
commit
e2fe9bb682
19 changed files with 244 additions and 237 deletions
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,14 @@
|
|||
# vim:expandtab:
|
||||
local argoapp = import "../../../_templates/argo_app.template";
|
||||
local vars = import "prometheus_vars";
|
||||
|
||||
[
|
||||
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,
|
||||
syncOptions:: ["CreateNamespace=true", "Replace=true"]
|
||||
}
|
||||
]
|
54
k8s-manifests/monitoring/prometheus/prometheus-stack.jsonnet
Normal file
54
k8s-manifests/monitoring/prometheus/prometheus-stack.jsonnet
Normal file
|
@ -0,0 +1,54 @@
|
|||
# vim:expandtab:
|
||||
local helmapp = import "../../../_templates/argo_helm_app.template";
|
||||
local vars = import "prometheus_vars";
|
||||
|
||||
[
|
||||
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:: |||
|
||||
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
|
||||
|||
|
||||
}
|
||||
]
|
4
k8s-manifests/monitoring/prometheus/prometheus_vars
Normal file
4
k8s-manifests/monitoring/prometheus/prometheus_vars
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"version": "34.6.0",
|
||||
"namespace": "metrics"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue