From 819f1da12b2bd3136ab9912b5667cb9f2ea569e0 Mon Sep 17 00:00:00 2001 From: hagen1778 Date: Fri, 5 Jul 2024 13:30:42 +0200 Subject: [PATCH] docs: clarify multitenancy via labels for vmagent Signed-off-by: hagen1778 (cherry picked from commit 4d92f875fdcb93f15b69cd24eb634e9ec6ad1277) --- docs/vmagent.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/vmagent.md b/docs/vmagent.md index 466fcf8c1f..ccf9a15447 100644 --- a/docs/vmagent.md +++ b/docs/vmagent.md @@ -348,9 +348,10 @@ scrape_configs: target_label: vm_account_id ``` -`vmagent` can accept data via the same multitenant endpoints as `vminsert` at [VictoriaMetrics cluster](https://docs.victoriametrics.com/cluster-victoriametrics/) +`vmagent` can accept data via the same multitenant endpoints (`/insert//`) as `vminsert` at [VictoriaMetrics cluster](https://docs.victoriametrics.com/cluster-victoriametrics/) does according to [these docs](https://docs.victoriametrics.com/cluster-victoriametrics/#url-format) if `-enableMultitenantHandlers` command-line flag is set. -In this case it automatically converts tenant identifiers to `vm_account_id` and `vm_project_id` labels before applying [relabeling](#relabeling) specified via `-remoteWrite.relabelConfig` +In this case, vmagent automatically converts tenant identifiers from the URL to `vm_account_id` and `vm_project_id` labels. +These tenant labels are added before applying [relabeling](#relabeling) specified via `-remoteWrite.relabelConfig` and `-remoteWrite.urlRelabelConfig` command-line flags. Metrics with `vm_account_id` and `vm_project_id` labels can be routed to the corresponding tenants when specifying `-remoteWrite.url` to [multitenant url at VictoriaMetrics cluster](https://docs.victoriametrics.com/cluster-victoriametrics/#multitenancy-via-labels).