mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 07:19:17 +01:00
vmalert: fix readme formatting (#2587)
Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
parent
0790ba5e26
commit
6e5ba1921d
@ -195,9 +195,7 @@ Like in Alertmanager you can define [reusable templates](https://prometheus.io/d
|
||||
to share same templates across annotations. Just define the templates in a file and
|
||||
set the path via `-rule.templates` flag.
|
||||
|
||||
For example, the template can be defined as following:
|
||||
|
||||
`/etc/vmalert/templates/global/common.tpl`
|
||||
For example, template `grafana.filter` can be defined as following:
|
||||
|
||||
```
|
||||
{{ define "grafana.filter" -}}
|
||||
@ -210,9 +208,7 @@ For example, the template can be defined as following:
|
||||
{{- end -}}
|
||||
```
|
||||
|
||||
And used in annotations:
|
||||
|
||||
`/etc/vmalert/rules/project/rule.yaml`
|
||||
And then used in annotations:
|
||||
|
||||
```yaml
|
||||
groups:
|
||||
|
@ -199,9 +199,7 @@ Like in Alertmanager you can define [reusable templates](https://prometheus.io/d
|
||||
to share same templates across annotations. Just define the templates in a file and
|
||||
set the path via `-rule.templates` flag.
|
||||
|
||||
For example, the template can be defined as following:
|
||||
|
||||
`/etc/vmalert/templates/global/common.tpl`
|
||||
For example, template `grafana.filter` can be defined as following:
|
||||
|
||||
```
|
||||
{{ define "grafana.filter" -}}
|
||||
@ -214,9 +212,7 @@ For example, the template can be defined as following:
|
||||
{{- end -}}
|
||||
```
|
||||
|
||||
And used in annotations:
|
||||
|
||||
`/etc/vmalert/rules/project/rule.yaml`
|
||||
And then used in annotations:
|
||||
|
||||
```yaml
|
||||
groups:
|
||||
|
Loading…
Reference in New Issue
Block a user