From 396ffdcffc42d13777025f9adcc5e9f8d5255279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sat, 8 May 2021 11:20:11 +0100 Subject: [PATCH] fix(docs): mention empty source rewrite --- docs/CONFIGURATION.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md index b9236ee42..1f8ca3444 100644 --- a/docs/CONFIGURATION.md +++ b/docs/CONFIGURATION.md @@ -740,6 +740,8 @@ history: when connecting to Prometheus API if `source` field in alert uses addresses not reachable from karma. All regexes are anchored, `${N}` syntax can be used for capture groups. + You can rewrite uri to an empty string to disable connecting to that + specific Prometheus instance. Defaults: @@ -772,6 +774,16 @@ history: uri: 'http://prometheus-$1.internal' ``` +Example with rewrite rule that will disable sending any history queries to +`http://prometheus.internal`: + +```YAML +history: + rewrite: + - source: 'http://prometheus.internal' + uri: '' +``` + ### Karma `karma` section allows configuring miscellaneous internal options.