From 546d26523c1c44a9377bc7890e3c11535fe82058 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Fri, 17 Apr 2020 13:08:21 +0300 Subject: [PATCH] app/vmagent/README.md: mention about `prodmscrape.suppressScrapeErrors` --- 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 2912be4a2..67df227a1 100644 --- a/app/vmagent/README.md +++ b/app/vmagent/README.md @@ -191,6 +191,9 @@ either via `vmagent` itself or via Prometheus, so the exported metrics could be * It is recommended increasing the maximum number of open files in the system (`ulimit -n`) when scraping big number of targets, since `vmagent` establishes at least a single TCP connection per each target. +* When `vmagent` scrapes many unreliable targets, it can flood error log with scrape errors. These errors can be suppressed + by passing `-promscrape.suppressScrapeErrors` command-line flag to `vmagent`. The most recent scrape error per each target can be observed at `http://vmagent-host:8429/targets`. + * It is recommended increasing `-remoteWrite.queues` if `vmagent` collects more than 100K samples per second and `vmagent_remotewrite_pending_data_bytes` metric exported by `vmagent` at `/metrics` page constantly grows. diff --git a/docs/vmagent.md b/docs/vmagent.md index 2912be4a2..67df227a1 100644 --- a/docs/vmagent.md +++ b/docs/vmagent.md @@ -191,6 +191,9 @@ either via `vmagent` itself or via Prometheus, so the exported metrics could be * It is recommended increasing the maximum number of open files in the system (`ulimit -n`) when scraping big number of targets, since `vmagent` establishes at least a single TCP connection per each target. +* When `vmagent` scrapes many unreliable targets, it can flood error log with scrape errors. These errors can be suppressed + by passing `-promscrape.suppressScrapeErrors` command-line flag to `vmagent`. The most recent scrape error per each target can be observed at `http://vmagent-host:8429/targets`. + * It is recommended increasing `-remoteWrite.queues` if `vmagent` collects more than 100K samples per second and `vmagent_remotewrite_pending_data_bytes` metric exported by `vmagent` at `/metrics` page constantly grows.