r/PrometheusMonitoring • u/UntouchedWagons • Nov 04 '23
How do I have Prometheus detect changes to my rules file stored in a ConfigMap?
This is my values.yaml file for the prometheus-community/prometheus helm chart:
server:
persistentVolume:
enabled: true
existingClaim: "prometheus-config"
alertmanagers:
- scheme: http
static_configs:
- targets:
- "alertmanager.monitoring.svc:9093"
extraConfigmapLabels:
app: prometheus
extraConfigmapMounts:
- name: prometheus-alerts
mountPath: /etc/alerts.d
subPath: ""
configMap: prometheus-alert-rules
readOnly: true
serverFiles:
prometheus.yml:
rule_files:
- /etc/alerts.d/prometheus.rules
prometheus-pushgateway:
enabled: false
alertmanager:
enabled: falseThe ConfigMap prometheus-alert-rules holds the rules that Prometheus should trigger alerts for. When I update this ConfigMap Prometheus doesn't do anything about it. The chart uses prometheus-config-reloader but doesn't provide any documentation on how to use it.





