Browse Source

Merge pull request #9873 from raptorsun/feature/AlertScrapeBodySizeLimitHit

Add Alert PrometheusScrapeBodySizeLimitHit
pull/10479/head
Björn Rabenstein 3 years ago committed by GitHub
parent
commit
9d34ddc00e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      documentation/prometheus-mixin/alerts.libsonnet

14
documentation/prometheus-mixin/alerts.libsonnet

@ -275,6 +275,20 @@
description: 'Prometheus %(prometheusName)s has dropped {{ printf "%%.0f" $value }} targets because some samples exceeded the configured label_limit, label_name_length_limit or label_value_length_limit.' % $._config, description: 'Prometheus %(prometheusName)s has dropped {{ printf "%%.0f" $value }} targets because some samples exceeded the configured label_limit, label_name_length_limit or label_value_length_limit.' % $._config,
}, },
}, },
{
alert: 'PrometheusScrapeBodySizeLimitHit',
expr: |||
increase(prometheus_target_scrapes_exceeded_body_size_limit_total{%(prometheusSelector)s}[5m]) > 0
||| % $._config,
'for': '15m',
labels: {
severity: 'warning',
},
annotations: {
summary: 'Prometheus has dropped some targets that exceeded body size limit.',
description: 'Prometheus %(prometheusName)s has dropped {{ printf "%%.0f" $value }} targets because some targets exceeded the configured body_size_limit.' % $._config,
},
},
{ {
alert: 'PrometheusTargetSyncFailure', alert: 'PrometheusTargetSyncFailure',
expr: ||| expr: |||

Loading…
Cancel
Save