From 2422b5091f684c7a1b66866adb4e213971b6361f Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 9 Jun 2021 15:38:09 +0300 Subject: [PATCH] app/vmauth: improve readability for a config with multiple `src_paths` --- app/vmauth/README.md | 5 ++++- app/vmauth/example_config.yml | 5 ++++- docs/vmauth.md | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/vmauth/README.md b/app/vmauth/README.md index 0afa6fb9d..34333e2f2 100644 --- a/app/vmauth/README.md +++ b/app/vmauth/README.md @@ -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 - username: "foobar" 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: - "http://vmselect1:8481/select/42/prometheus" - "http://vmselect2:8481/select/42/prometheus" diff --git a/app/vmauth/example_config.yml b/app/vmauth/example_config.yml index ece9b9994..01e497dfc 100644 --- a/app/vmauth/example_config.yml +++ b/app/vmauth/example_config.yml @@ -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 - username: "foobar" 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: - "http://vmselect1:8481/select/42/prometheus" - "http://vmselect2:8481/select/42/prometheus" diff --git a/docs/vmauth.md b/docs/vmauth.md index cbca61e7a..6253a1681 100644 --- a/docs/vmauth.md +++ b/docs/vmauth.md @@ -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 - username: "foobar" 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: - "http://vmselect1:8481/select/42/prometheus" - "http://vmselect2:8481/select/42/prometheus"