Files
kube-prometheus/hack/scripts/generate-configmaps.sh
Frederic Branczyk 4a7ede4ffd add kubernetes alerts
2016-11-02 10:59:29 +01:00

8 lines
352 B
Bash
Executable File

#!/bin/bash
# Generate Alert Rules ConfigMap
kubectl create configmap --dry-run=true prometheus-k8s-rules --from-file=assets/alerts/ -oyaml > manifests/prometheus/prometheus-k8s-rules.yaml
# Generate Dashboard ConfigMap
kubectl create configmap --dry-run=true grafana-dashboards --from-file=assets/grafana/ -oyaml > manifests/grafana/grafana-cm.yaml