diff --git a/app/vmalert/README.md b/app/vmalert/README.md index 01e5fd42d1..9402dfa43a 100644 --- a/app/vmalert/README.md +++ b/app/vmalert/README.md @@ -331,6 +331,11 @@ groups: # Rules for accountID=456, projectID=789 ``` +The results of alerting and recording rules contain `vm_account_id` and `vm_project_id` labels +if `-clusterMode` is enabled. These labels can be used during [templating](https://docs.victoriametrics.com/vmalert.html#templating). +The results of alerting and recording rules with these labels can be stored to the corresponding tenants at VictoriaMetrics cluster +via [multitenant endpoint](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html#multitenancy-via-labels). + If `-clusterMode` is enabled, then `-datasource.url`, `-remoteRead.url` and `-remoteWrite.url` must contain only the hostname without tenant id. For example: `-datasource.url=http://vmselect:8481`. `vmalert` automatically adds the specified tenant to urls per each recording rule in this case. diff --git a/docs/vmalert.md b/docs/vmalert.md index 56c8e7423e..40a3be06e7 100644 --- a/docs/vmalert.md +++ b/docs/vmalert.md @@ -335,6 +335,11 @@ groups: # Rules for accountID=456, projectID=789 ``` +The results of alerting and recording rules contain `vm_account_id` and `vm_project_id` labels +if `-clusterMode` is enabled. These labels can be used during [templating](https://docs.victoriametrics.com/vmalert.html#templating). +The results of alerting and recording rules with these labels can be stored to the corresponding tenants at VictoriaMetrics cluster +via [multitenant endpoint](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html#multitenancy-via-labels). + If `-clusterMode` is enabled, then `-datasource.url`, `-remoteRead.url` and `-remoteWrite.url` must contain only the hostname without tenant id. For example: `-datasource.url=http://vmselect:8481`. `vmalert` automatically adds the specified tenant to urls per each recording rule in this case.