mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 12:31:07 +01:00
app/vmauth: improve readability for a config with multiple src_paths
This commit is contained in:
parent
329b6cd146
commit
2422b5091f
@ -100,7 +100,10 @@ users:
|
|||||||
# - Requests to http://vmauth:8427/api/v1/write are proxied to http://vminsert:8480/insert/42/prometheus/api/v1/write
|
# - Requests to http://vmauth:8427/api/v1/write are proxied to http://vminsert:8480/insert/42/prometheus/api/v1/write
|
||||||
- username: "foobar"
|
- username: "foobar"
|
||||||
url_map:
|
url_map:
|
||||||
- src_paths: ["/api/v1/query", "/api/v1/query_range", "/api/v1/label/[^/]+/values"]
|
- src_paths:
|
||||||
|
- "/api/v1/query"
|
||||||
|
- "/api/v1/query_range"
|
||||||
|
- "/api/v1/label/[^/]+/values"
|
||||||
url_prefix:
|
url_prefix:
|
||||||
- "http://vmselect1:8481/select/42/prometheus"
|
- "http://vmselect1:8481/select/42/prometheus"
|
||||||
- "http://vmselect2:8481/select/42/prometheus"
|
- "http://vmselect2:8481/select/42/prometheus"
|
||||||
|
@ -60,7 +60,10 @@ users:
|
|||||||
# - Requests to http://vmauth:8427/api/v1/write are proxied to http://vminsert:8480/insert/42/prometheus/api/v1/write
|
# - Requests to http://vmauth:8427/api/v1/write are proxied to http://vminsert:8480/insert/42/prometheus/api/v1/write
|
||||||
- username: "foobar"
|
- username: "foobar"
|
||||||
url_map:
|
url_map:
|
||||||
- src_paths: ["/api/v1/query", "/api/v1/query_range", "/api/v1/label/[^/]+/values"]
|
- src_paths:
|
||||||
|
- "/api/v1/query"
|
||||||
|
- "/api/v1/query_range"
|
||||||
|
- "/api/v1/label/[^/]+/values"
|
||||||
url_prefix:
|
url_prefix:
|
||||||
- "http://vmselect1:8481/select/42/prometheus"
|
- "http://vmselect1:8481/select/42/prometheus"
|
||||||
- "http://vmselect2:8481/select/42/prometheus"
|
- "http://vmselect2:8481/select/42/prometheus"
|
||||||
|
@ -104,7 +104,10 @@ users:
|
|||||||
# - Requests to http://vmauth:8427/api/v1/write are proxied to http://vminsert:8480/insert/42/prometheus/api/v1/write
|
# - Requests to http://vmauth:8427/api/v1/write are proxied to http://vminsert:8480/insert/42/prometheus/api/v1/write
|
||||||
- username: "foobar"
|
- username: "foobar"
|
||||||
url_map:
|
url_map:
|
||||||
- src_paths: ["/api/v1/query", "/api/v1/query_range", "/api/v1/label/[^/]+/values"]
|
- src_paths:
|
||||||
|
- "/api/v1/query"
|
||||||
|
- "/api/v1/query_range"
|
||||||
|
- "/api/v1/label/[^/]+/values"
|
||||||
url_prefix:
|
url_prefix:
|
||||||
- "http://vmselect1:8481/select/42/prometheus"
|
- "http://vmselect1:8481/select/42/prometheus"
|
||||||
- "http://vmselect2:8481/select/42/prometheus"
|
- "http://vmselect2:8481/select/42/prometheus"
|
||||||
|
Loading…
Reference in New Issue
Block a user