From 85bf63078ca86002ce34b4c28d59cf04c5a2cbcb Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 15 Nov 2023 23:02:37 +0100 Subject: [PATCH] docs/vmagent.md: refer to proper command-line flag: -remoteWrite.shardByURL.labels instead of -remoteWrite.shardByURLLabels This is a follow-up for ed70a40669b81d9ba46f86342d464429a656bf55 Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4942 --- app/vmagent/README.md | 4 ++-- docs/vmagent.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/vmagent/README.md b/app/vmagent/README.md index b607ce3f0..452fd8482 100644 --- a/app/vmagent/README.md +++ b/app/vmagent/README.md @@ -177,8 +177,8 @@ to the same second-level `vmagent` instance, so they are aggregated properly. If `-remoteWrite.shardByURL` command-line flag is set, then all the metric labels are used for even sharding among remote storage systems specified in `-remoteWrite.url`. Sometimes it may be needed to use only a particular set of labels for sharding. For example, it may be needed to route all the metrics with the same `instance` label -to the same `-remoteWrite.url`. In this case you can specify comma-separated list of these labels in the `-remoteWrite.shardByURLLabels` -command-line flag. For example, `-remoteWrite.shardByURLLabels=instance,__name__` would shard metrics with the same name and `instance` +to the same `-remoteWrite.url`. In this case you can specify comma-separated list of these labels in the `-remoteWrite.shardByURL.labels` +command-line flag. For example, `-remoteWrite.shardByURL.labels=instance,__name__` would shard metrics with the same name and `instance` label to the same `-remoteWrite.url`. See also [how to scrape big number of targets](#scraping-big-number-of-targets). diff --git a/docs/vmagent.md b/docs/vmagent.md index 717e213cd..45f7db7a1 100644 --- a/docs/vmagent.md +++ b/docs/vmagent.md @@ -188,8 +188,8 @@ to the same second-level `vmagent` instance, so they are aggregated properly. If `-remoteWrite.shardByURL` command-line flag is set, then all the metric labels are used for even sharding among remote storage systems specified in `-remoteWrite.url`. Sometimes it may be needed to use only a particular set of labels for sharding. For example, it may be needed to route all the metrics with the same `instance` label -to the same `-remoteWrite.url`. In this case you can specify comma-separated list of these labels in the `-remoteWrite.shardByURLLabels` -command-line flag. For example, `-remoteWrite.shardByURLLabels=instance,__name__` would shard metrics with the same name and `instance` +to the same `-remoteWrite.url`. In this case you can specify comma-separated list of these labels in the `-remoteWrite.shardByURL.labels` +command-line flag. For example, `-remoteWrite.shardByURL.labels=instance,__name__` would shard metrics with the same name and `instance` label to the same `-remoteWrite.url`. See also [how to scrape big number of targets](#scraping-big-number-of-targets).