update wiki pages

Vika 2023-01-25 17:30:40 +00:00
parent 28663ea5ec
commit a6dcd5cec8
2 changed files with 7 additions and 8 deletions

@ -1274,8 +1274,8 @@ scrape_configs:
# scrape_offset: <duration> # scrape_offset: <duration>
# series_limit is an optional limit on the number of unique time series # series_limit is an optional limit on the number of unique time series
# a single target can expose during all the scrapes. # a single target can expose during all the scrapes on the time window of 24h.
# By default there is no limit on the number of exposed series. # By default, there is no limit on the number of exposed series.
# See https://docs.victoriametrics.com/vmagent.html#cardinality-limiter . # See https://docs.victoriametrics.com/vmagent.html#cardinality-limiter .
# The series_limit can be set on a per-target basis by specifying `__series_limit__` # The series_limit can be set on a per-target basis by specifying `__series_limit__`
# label during target relabeling phase. # label during target relabeling phase.
@ -1283,7 +1283,7 @@ scrape_configs:
# series_limit: ... # series_limit: ...
# no_stale_markers allows disabling staleness tracking. # no_stale_markers allows disabling staleness tracking.
# By default staleness tracking is enabled for all the discovered scrape targets. # By default, staleness tracking is enabled for all the discovered scrape targets.
# See https://docs.victoriametrics.com/vmagent.html#prometheus-staleness-markers # See https://docs.victoriametrics.com/vmagent.html#prometheus-staleness-markers
# no_stale_markers: <boolean> # no_stale_markers: <boolean>

@ -767,7 +767,8 @@ scrape_configs:
## Cardinality limiter ## Cardinality limiter
By default `vmagent` doesn't limit the number of time series each scrape target can expose. The limit can be enforced in the following places: By default `vmagent` doesn't limit the number of time series each scrape target can expose.
The limit can be enforced in the following places:
* Via `-promscrape.seriesLimitPerTarget` command-line option. This limit is applied individually * Via `-promscrape.seriesLimitPerTarget` command-line option. This limit is applied individually
to all the scrape targets defined in the file pointed by `-promscrape.config`. to all the scrape targets defined in the file pointed by `-promscrape.config`.
@ -778,10 +779,7 @@ By default `vmagent` doesn't limit the number of time series each scrape target
via [Kubernetes annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) for targets, via [Kubernetes annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) for targets,
which may expose too high number of time series. which may expose too high number of time series.
See also `sample_limit` option at [scrape_config section](https://docs.victoriametrics.com/sd_configs.html#scrape_configs). Scraped metrics are dropped for time series exceeding the given limit on the time window of 24h.
Scraped metrics are dropped for time series exceeding the given limit.
`vmagent` creates the following additional per-target metrics for targets with non-zero series limit: `vmagent` creates the following additional per-target metrics for targets with non-zero series limit:
- `scrape_series_limit_samples_dropped` - the number of dropped samples during the scrape when the unique series limit is exceeded. - `scrape_series_limit_samples_dropped` - the number of dropped samples during the scrape when the unique series limit is exceeded.
@ -795,6 +793,7 @@ 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. - `scrape_series_current / scrape_series_limit > 0.9` - alerts when the number of series exposed by the target reaches 90% of the limit.
- `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. - `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.
See also `sample_limit` option at [scrape_config section](https://docs.victoriametrics.com/sd_configs.html#scrape_configs).
By default `vmagent` doesn't limit the number of time series written to remote storage systems specified at `-remoteWrite.url`. 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: The limit can be enforced by setting the following command-line flags: