diff --git a/app/vmagent/README.md b/app/vmagent/README.md index 2db301f19c..6bac2bf56b 100644 --- a/app/vmagent/README.md +++ b/app/vmagent/README.md @@ -258,7 +258,7 @@ Note that `sample_limit` option doesn't prevent from data push to remote storage ## Scraping big number of targets A single `vmagent` instance can scrape tens of thousands of scrape targets. Sometimes this isn't enough due to limitations on CPU, network, RAM, etc. -In this case scrape targets can be split among multiple `vmagent` instances (aka `vmagent` horizontal scaling and clustering). +In this case scrape targets can be split among multiple `vmagent` instances (aka `vmagent` horizontal scaling, sharding and clustering). Each `vmagent` instance in the cluster must use identical `-promscrape.config` files with distinct `-promscrape.cluster.memberNum` values. The flag value must be in the range `0 ... N-1`, where `N` is the number of `vmagent` instances in the cluster. The number of `vmagent` instances in the cluster must be passed to `-promscrape.cluster.membersCount` command-line flag. For example, the following commands diff --git a/docs/vmagent.md b/docs/vmagent.md index a829807474..165793b76d 100644 --- a/docs/vmagent.md +++ b/docs/vmagent.md @@ -262,7 +262,7 @@ Note that `sample_limit` option doesn't prevent from data push to remote storage ## Scraping big number of targets A single `vmagent` instance can scrape tens of thousands of scrape targets. Sometimes this isn't enough due to limitations on CPU, network, RAM, etc. -In this case scrape targets can be split among multiple `vmagent` instances (aka `vmagent` horizontal scaling and clustering). +In this case scrape targets can be split among multiple `vmagent` instances (aka `vmagent` horizontal scaling, sharding and clustering). Each `vmagent` instance in the cluster must use identical `-promscrape.config` files with distinct `-promscrape.cluster.memberNum` values. The flag value must be in the range `0 ... N-1`, where `N` is the number of `vmagent` instances in the cluster. The number of `vmagent` instances in the cluster must be passed to `-promscrape.cluster.membersCount` command-line flag. For example, the following commands