From 1a80acc7122628f568b0aaf1c21a11b632b4ef01 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 4 Nov 2020 11:16:16 +0200 Subject: [PATCH] docs/vmagent.md: mention about `-promscrape.dropOriginalLabels` --- app/vmagent/README.md | 3 +++ docs/vmagent.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/vmagent/README.md b/app/vmagent/README.md index 22d2c6403..6e8ecce51 100644 --- a/app/vmagent/README.md +++ b/app/vmagent/README.md @@ -249,6 +249,9 @@ This information may be useful for debugging target relabeling. 'match[]': ['{__name__!=""}'] ``` +* If `vmagent` scrapes big number of targets, then `-promscrape.dropOriginalLabels` command-line flag could be used for reducing memory usage. This flag removes tracking the original + labels for scrape targets. Such labels may be useful for debugging at `/api/v1/targets` page, but they aren't used in other places. + * It is recommended to increase `-remoteWrite.queues` if `vmagent_remotewrite_pending_data_bytes` metric exported at `http://vmagent-host:8429/metrics` page constantly grows. * If you see gaps on the data pushed by `vmagent` to remote storage when `-remoteWrite.maxDiskUsagePerURL` is set, then try increasing `-remoteWrite.queues`. diff --git a/docs/vmagent.md b/docs/vmagent.md index 22d2c6403..6e8ecce51 100644 --- a/docs/vmagent.md +++ b/docs/vmagent.md @@ -249,6 +249,9 @@ This information may be useful for debugging target relabeling. 'match[]': ['{__name__!=""}'] ``` +* If `vmagent` scrapes big number of targets, then `-promscrape.dropOriginalLabels` command-line flag could be used for reducing memory usage. This flag removes tracking the original + labels for scrape targets. Such labels may be useful for debugging at `/api/v1/targets` page, but they aren't used in other places. + * It is recommended to increase `-remoteWrite.queues` if `vmagent_remotewrite_pending_data_bytes` metric exported at `http://vmagent-host:8429/metrics` page constantly grows. * If you see gaps on the data pushed by `vmagent` to remote storage when `-remoteWrite.maxDiskUsagePerURL` is set, then try increasing `-remoteWrite.queues`.