mirror of
https://github.com/prymitive/karma
synced 2026-08-28 11:17:28 +00:00
fix(docs): mention empty source rewrite
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user