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.