From dbfa1421acd8fb67b5f4def4fc693d310827f321 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 18 Jan 2022 12:36:15 +0200 Subject: [PATCH] docs/vmgateway.md: update docs, since vmgateway now supports extra_filters See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1863 --- docs/vmgateway.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/vmgateway.md b/docs/vmgateway.md index 1add172c3..bf404a2e1 100644 --- a/docs/vmgateway.md +++ b/docs/vmgateway.md @@ -40,6 +40,7 @@ jwt token must be in following format: "team": "dev", "project": "mobile" }, + "extra_filters": ["{env~=\"prod|dev\",team!=\"test\"}"], "mode": 1 } } @@ -48,7 +49,8 @@ Where: - `exp` - required, expire time in unix_timestamp. If the token expires then `vmgateway` rejects the request. - `vm_access` - required, dict with claim info, minimum form: `{"vm_access": {"tenand_id": {}}` - `tenant_id` - optional, for cluster mode, routes requests to the corresponding tenant. -- `extra_labels` - optional, key-value pairs for label filters added to the ingested or selected metrics. +- `extra_labels` - optional, key-value pairs for label filters added to the ingested or selected metrics. Multiple filters are added with `and` operation. If defined, `extra_label` from original request removed. +- `extra_filters` - optional, [series selectors](https://prometheus.io/docs/prometheus/latest/querying/basics/#time-series-selectors) added to the select query requests. Multiple selectors are added with `or` operation. If defined, `extra_filter` from original request removed. - `mode` - optional, access mode for api - read, write, or full. Supported values: 0 - full (default value), 1 - read, 2 - write. ## QuickStart