docs/vmalert.md: mention that type option can be set at group level additionally to rule level

This commit is contained in:
Aliaksandr Valialkin 2021-02-03 21:12:14 +02:00
parent 8dc6095749
commit a2344ef4b7
2 changed files with 10 additions and 2 deletions

View File

@ -82,6 +82,10 @@ name: <string>
# up round execution speed.
[ concurrency: <integer> | default = 1 ]
# Optional type for expressions inside the rules. Supported values: "graphite" and "prometheus".
# By default "prometheus" rule type is used.
[ type: <string> ]
rules:
[ - <rule> ... ]
```
@ -182,7 +186,7 @@ Used as alert source in AlertManager.
### Graphite
vmalert sends requests to `<-datasource.url>/render?format=json` during evaluation of alerting and recording rules
if the corresponding rule contains `type: "graphite"` config option. It is expected that the `<-datasource.url>/render`
if the corresponding group or rule contains `type: "graphite"` config option. It is expected that the `<-datasource.url>/render`
implements [Graphite Render API](https://graphite.readthedocs.io/en/stable/render_api.html) for `format=json`.

View File

@ -82,6 +82,10 @@ name: <string>
# up round execution speed.
[ concurrency: <integer> | default = 1 ]
# Optional type for expressions inside the rules. Supported values: "graphite" and "prometheus".
# By default "prometheus" rule type is used.
[ type: <string> ]
rules:
[ - <rule> ... ]
```
@ -182,7 +186,7 @@ Used as alert source in AlertManager.
### Graphite
vmalert sends requests to `<-datasource.url>/render?format=json` during evaluation of alerting and recording rules
if the corresponding rule contains `type: "graphite"` config option. It is expected that the `<-datasource.url>/render`
if the corresponding group or rule contains `type: "graphite"` config option. It is expected that the `<-datasource.url>/render`
implements [Graphite Render API](https://graphite.readthedocs.io/en/stable/render_api.html) for `format=json`.