chore(grafana): configure contactpoints
This commit is contained in:
parent
7f87a975d3
commit
07f7b1b75f
|
@ -33,6 +33,8 @@ data:
|
||||||
name: Prometheus
|
name: Prometheus
|
||||||
type: prometheus
|
type: prometheus
|
||||||
url: http://prometheus-server
|
url: http://prometheus-server
|
||||||
|
contactpoints.yaml: |
|
||||||
|
apiVersion: 1
|
||||||
dashboardproviders.yaml: |
|
dashboardproviders.yaml: |
|
||||||
apiVersion: 1
|
apiVersion: 1
|
||||||
providers:
|
providers:
|
||||||
|
|
|
@ -26,7 +26,7 @@ spec:
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
annotations:
|
annotations:
|
||||||
checksum/config: 6d02e56644107500207b217eb10509f2af0039e3a918f8cb1411f6c7d8db7cd5
|
checksum/config: 36a36abf9dd9e61eaa035cfc90acbb82d3e6c131aa9fd57eaf98ae5380401bf3
|
||||||
checksum/dashboards-json-config: 2b3b91b055108de2da8951a904e7c7ea49b5a5a250d2649ba27b7b7b7ec34cfd
|
checksum/dashboards-json-config: 2b3b91b055108de2da8951a904e7c7ea49b5a5a250d2649ba27b7b7b7ec34cfd
|
||||||
checksum/sc-dashboard-provider-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
|
checksum/sc-dashboard-provider-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
|
||||||
kubectl.kubernetes.io/default-container: grafana
|
kubectl.kubernetes.io/default-container: grafana
|
||||||
|
@ -80,6 +80,9 @@ spec:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: "/etc/grafana/provisioning/datasources/datasources.yaml"
|
mountPath: "/etc/grafana/provisioning/datasources/datasources.yaml"
|
||||||
subPath: "datasources.yaml"
|
subPath: "datasources.yaml"
|
||||||
|
- name: config
|
||||||
|
mountPath: "/etc/grafana/provisioning/alerting/contactpoints.yaml"
|
||||||
|
subPath: "contactpoints.yaml"
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: "/etc/grafana/provisioning/dashboards/dashboardproviders.yaml"
|
mountPath: "/etc/grafana/provisioning/dashboards/dashboardproviders.yaml"
|
||||||
subPath: "dashboardproviders.yaml"
|
subPath: "dashboardproviders.yaml"
|
||||||
|
|
|
@ -16,6 +16,12 @@ datasources:
|
||||||
name: Prometheus
|
name: Prometheus
|
||||||
type: prometheus
|
type: prometheus
|
||||||
url: http://prometheus-server
|
url: http://prometheus-server
|
||||||
|
# Note: alerting rules are patched in overlays.
|
||||||
|
# Including here is required for the helm chart to mount the configmap
|
||||||
|
# volume.
|
||||||
|
alerting:
|
||||||
|
contactpoints.yaml:
|
||||||
|
apiVersion: 1
|
||||||
dashboardProviders:
|
dashboardProviders:
|
||||||
dashboardproviders.yaml:
|
dashboardproviders.yaml:
|
||||||
apiVersion: 1
|
apiVersion: 1
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
apiVersion: 1
|
||||||
|
contactPoints:
|
||||||
|
- name: Prometheus Alertmanager
|
||||||
|
receivers:
|
||||||
|
- uid: prometheus-alertmanager-1
|
||||||
|
type: prometheus-alertmanager
|
||||||
|
disableResolveMessage: false
|
||||||
|
settings:
|
||||||
|
url: http://dev-prometheus-alertmanager:9093
|
|
@ -38,6 +38,7 @@ configMapGenerator:
|
||||||
files:
|
files:
|
||||||
- grafana.ini
|
- grafana.ini
|
||||||
- datasources.yaml=grafana-datasources.yaml
|
- datasources.yaml=grafana-datasources.yaml
|
||||||
|
- contactpoints.yaml=grafana-contactpoints.yaml
|
||||||
- name: invidious-config
|
- name: invidious-config
|
||||||
files:
|
files:
|
||||||
- config.yml=invidious-config.yaml
|
- config.yml=invidious-config.yaml
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
apiVersion: 1
|
||||||
|
contactPoints:
|
||||||
|
- name: Prometheus Alertmanager
|
||||||
|
receivers:
|
||||||
|
- uid: prometheus-alertmanager-1
|
||||||
|
type: prometheus-alertmanager
|
||||||
|
disableResolveMessage: false
|
||||||
|
settings:
|
||||||
|
url: http://prod-prometheus-alertmanager:9093
|
|
@ -27,6 +27,7 @@ configMapGenerator:
|
||||||
files:
|
files:
|
||||||
- grafana.ini=secrets/grafana-config.ini
|
- grafana.ini=secrets/grafana-config.ini
|
||||||
- datasources.yaml=secrets/grafana-datasources.yaml
|
- datasources.yaml=secrets/grafana-datasources.yaml
|
||||||
|
- contactpoints.yaml=grafana-contactpoints.yaml
|
||||||
- name: invidious-config
|
- name: invidious-config
|
||||||
files:
|
files:
|
||||||
- config.yml=invidious-config.yaml
|
- config.yml=invidious-config.yaml
|
||||||
|
|
Loading…
Reference in New Issue