docs/vmagent.md: remove outdated suggestion for determining labels that lead to duplicate targets

The original labels for duplicate targets is already printed in the error message starting from 71ea4935de
This commit is contained in:
Aliaksandr Valialkin 2021-03-03 12:26:09 +02:00
parent 3a68b94487
commit f391e5a3a0
2 changed files with 0 additions and 12 deletions

View File

@ -327,12 +327,6 @@ It may be useful to perform `vmagent` rolling update without any scrape loss.
or they use an init container. These errors can either be fixed or suppressed with the `-promscrape.suppressDuplicateScrapeTargetErrors` command-line flag. or they use an init container. These errors can either be fixed or suppressed with the `-promscrape.suppressDuplicateScrapeTargetErrors` command-line flag.
See the available options below if you prefer fixing the root cause of the error: See the available options below if you prefer fixing the root cause of the error:
The following `relabel_configs` section may help determining `__meta_*` labels resulting in duplicate targets:
```yml
- action: labelmap
regex: __meta_(.*)
```
The following relabeling rule may be added to `relabel_configs` section in order to filter out pods with unneeded ports: The following relabeling rule may be added to `relabel_configs` section in order to filter out pods with unneeded ports:
```yml ```yml
- action: keep_if_equal - action: keep_if_equal

View File

@ -327,12 +327,6 @@ It may be useful to perform `vmagent` rolling update without any scrape loss.
or they use an init container. These errors can either be fixed or suppressed with the `-promscrape.suppressDuplicateScrapeTargetErrors` command-line flag. or they use an init container. These errors can either be fixed or suppressed with the `-promscrape.suppressDuplicateScrapeTargetErrors` command-line flag.
See the available options below if you prefer fixing the root cause of the error: See the available options below if you prefer fixing the root cause of the error:
The following `relabel_configs` section may help determining `__meta_*` labels resulting in duplicate targets:
```yml
- action: labelmap
regex: __meta_(.*)
```
The following relabeling rule may be added to `relabel_configs` section in order to filter out pods with unneeded ports: The following relabeling rule may be added to `relabel_configs` section in order to filter out pods with unneeded ports:
```yml ```yml
- action: keep_if_equal - action: keep_if_equal