fix(docs): mention empty source rewrite

This commit is contained in:
Łukasz Mierzwa
2021-05-08 11:20:11 +01:00
committed by GitHub
parent 9afadd75ce
commit 396ffdcffc
+12
View File
@@ -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.