diff --git a/dist/rules/prometheus-self-monitoring/embedded-exporter.yml b/dist/rules/prometheus-self-monitoring/embedded-exporter.yml index 5366477..dfc4025 100644 --- a/dist/rules/prometheus-self-monitoring/embedded-exporter.yml +++ b/dist/rules/prometheus-self-monitoring/embedded-exporter.yml @@ -14,6 +14,8 @@ groups: summary: Prometheus job missing (instance {{ $labels.instance }}) description: "A Prometheus job has disappeared\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" + # Only fire if at least one target in the job is still up. + # If all targets are down, PrometheusJobMissing or PrometheusAllTargetsMissing will fire instead. - alert: PrometheusTargetMissing expr: 'up == 0 unless on(job) (sum by (job) (up) == 0)' for: 0m