Merge pull request #13505 from wbollock/fix/PrometheusNotIngestingSamples_label_matching

mixin: PrometheusNotIngestingSamples label matching
This commit is contained in:
Matthias Loibl 2024-02-03 11:53:18 +00:00 committed by GitHub
commit 805d51f6d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,7 +122,7 @@
alert: 'PrometheusNotIngestingSamples',
expr: |||
(
rate(prometheus_tsdb_head_samples_appended_total{%(prometheusSelector)s}[5m]) <= 0
sum without(type) (rate(prometheus_tsdb_head_samples_appended_total{%(prometheusSelector)s}[5m])) <= 0
and
(
sum without(scrape_job) (prometheus_target_metadata_cache_entries{%(prometheusSelector)s}) > 0