From c011fb0f3082e210283a5a213e6697b175ed6232 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 24 Aug 2022 01:16:26 +0300 Subject: [PATCH] docs/vmagent.md: fix alerting query when scraped samples are dropped because of exceeded series limit This is a follow-up after 7d26414b2e98b0a949df207c1100293499c3db3b --- app/vmagent/README.md | 2 +- docs/vmagent.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vmagent/README.md b/app/vmagent/README.md index efff2fb4d5..dd746a87da 100644 --- a/app/vmagent/README.md +++ b/app/vmagent/README.md @@ -604,7 +604,7 @@ These metrics are automatically sent to the configured `-remoteWrite.url` alongs These metrics allow building the following alerting rules: - `scrape_series_current / scrape_series_limit > 0.9` - alerts when the number of series exposed by the target reaches 90% of the limit. -- `rate(scrape_series_samples_dropped_total) > 0` - alerts when some samples are dropped because the series limit on a particular target is reached. +- `sum_over_time(scrape_series_limit_samples_dropped[1h]) > 0` - alerts when some samples are dropped because the series limit on a particular target is reached. By default `vmagent` doesn't limit the number of time series written to remote storage systems specified at `-remoteWrite.url`. The limit can be enforced by setting the following command-line flags: diff --git a/docs/vmagent.md b/docs/vmagent.md index ad20d4cd2d..7c708fb934 100644 --- a/docs/vmagent.md +++ b/docs/vmagent.md @@ -608,7 +608,7 @@ These metrics are automatically sent to the configured `-remoteWrite.url` alongs These metrics allow building the following alerting rules: - `scrape_series_current / scrape_series_limit > 0.9` - alerts when the number of series exposed by the target reaches 90% of the limit. -- `rate(scrape_series_samples_dropped_total) > 0` - alerts when some samples are dropped because the series limit on a particular target is reached. +- `sum_over_time(scrape_series_limit_samples_dropped[1h]) > 0` - alerts when some samples are dropped because the series limit on a particular target is reached. By default `vmagent` doesn't limit the number of time series written to remote storage systems specified at `-remoteWrite.url`. The limit can be enforced by setting the following command-line flags: