This also contains the generated ConfigMaps for the grafana dashboards as well as for alerts. These will be updated in subsequent changes as sets of alerts and dashboards are added/updated in the respective subdirectories in `/assets`.
8 lines
354 B
Bash
Executable File
8 lines
354 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Generate Alert Rules ConfigMap
|
|
kubectl create configmap --dry-run=true prometheus-k8s-alerts --from-file=assets/alerts/ -oyaml > manifests/prometheus/prometheus-k8s-alerts.yaml
|
|
|
|
# Generate Dashboard ConfigMap
|
|
kubectl create configmap --dry-run=true grafana-dashboards --from-file=assets/grafana/ -oyaml > manifests/grafana/grafana-cm.yaml
|