vmalert: fix readme formatting (#2587)

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
Roman Khavronenko 2022-05-14 19:29:09 +02:00 committed by Aliaksandr Valialkin
parent 0790ba5e26
commit 6e5ba1921d
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1
2 changed files with 4 additions and 12 deletions

View File

@ -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:

View File

@ -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: