From 39b3e73f55de9c57090f026e7c3eefee74eb83fb Mon Sep 17 00:00:00 2001 From: hagen1778 Date: Mon, 30 Sep 2024 09:08:56 +0200 Subject: [PATCH] docs: use global dedup flag in vmagent's FlexibleDeduplication docs Current doc is using per-url deduplication, and users might use this example when they have more than 1 remoteWrite URL. Which would result into extra resource usage. Changing the example to use global dedup, as it makes more sense. Signed-off-by: hagen1778 --- docs/vmagent.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/vmagent.md b/docs/vmagent.md index 4f5d2e9000..72e71f1319 100644 --- a/docs/vmagent.md +++ b/docs/vmagent.md @@ -267,16 +267,17 @@ There is also support for multitenant writes. See [these docs](#multitenancy). for the collected samples. Examples: - The following command instructs `vmagent` to send only the last sample per each seen [time series](https://docs.victoriametrics.com/keyconcepts/#time-series) per every 60 seconds: - ``` - ./vmagent -remoteWrite.url=http://remote-storage/api/v1/write -remoteWrite.streamAggr.dedupInterval=60s + ```sh + ./vmagent -remoteWrite.url=http://remote-storage/api/v1/write -streamAggr.dedupInterval=60s ``` - The following command instructs `vmagent` to merge [time series](https://docs.victoriametrics.com/keyconcepts/#time-series) with different `replica` label values - and then to send only the last sample per each merged series per ever 60 seconds: - ``` - ./vmagent -remoteWrite=http://remote-storage/api/v1/write -streamAggr.dropInputLabels=replica -remoteWrite.streamAggr.dedupInterval=60s + and then to send only the last sample per each merged series per every 60 seconds: + ```sh + ./vmagent -remoteWrite=http://remote-storage/api/v1/write -streamAggr.dropInputLabels=replica -streamAggr.dedupInterval=60s ``` + ## SRV urls If `vmagent` encounters urls with `srv+` prefix in hostname (such as `http://srv+some-addr/some/path`), then it resolves `some-addr` [DNS SRV](https://en.wikipedia.org/wiki/SRV_record)