specify formating in vmalert doc

Signed-off-by: Artem Navoiev <tenmozes@gmail.com>
This commit is contained in:
Artem Navoiev 2023-07-19 10:43:52 +02:00 committed by Aliaksandr Valialkin
parent 80768d53dd
commit a600cc3645
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -912,7 +912,7 @@ command-line flags with their descriptions.
The shortlist of configuration flags is the following: The shortlist of configuration flags is the following:
{% raw %} {% raw %}
``` ```console
-clusterMode -clusterMode
If clusterMode is enabled, then vmalert automatically adds the tenant specified in config groups to -datasource.url, -remoteWrite.url and -remoteRead.url. See https://docs.victoriametrics.com/vmalert.html#multitenancy . This flag is available only in VictoriaMetrics enterprise. See https://docs.victoriametrics.com/enterprise.html If clusterMode is enabled, then vmalert automatically adds the tenant specified in config groups to -datasource.url, -remoteWrite.url and -remoteRead.url. See https://docs.victoriametrics.com/vmalert.html#multitenancy . This flag is available only in VictoriaMetrics enterprise. See https://docs.victoriametrics.com/enterprise.html
-configCheckInterval duration -configCheckInterval duration
@ -1342,7 +1342,7 @@ The configuration file allows to configure static notifiers, discover notifiers
and [DNS](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#dns_sd_config): and [DNS](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#dns_sd_config):
For example: For example:
``` ```yaml
static_configs: static_configs:
- targets: - targets:
- localhost:9093 - localhost:9093
@ -1367,7 +1367,7 @@ to ensure [high availability](https://github.com/prometheus/alertmanager#high-av
The configuration file [specification](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/app/vmalert/notifier/config.go) The configuration file [specification](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/app/vmalert/notifier/config.go)
is the following: is the following:
``` ```yaml
# Per-target Notifier timeout when pushing alerts. # Per-target Notifier timeout when pushing alerts.
[ timeout: <duration> | default = 10s ] [ timeout: <duration> | default = 10s ]
@ -1486,6 +1486,7 @@ docker push my-repo:my-version-name
``` ```
To run the built image in `victoria-metrics-k8s-stack` or `VMAlert` CR object apply the following config change: To run the built image in `victoria-metrics-k8s-stack` or `VMAlert` CR object apply the following config change:
```yaml ```yaml
kind: VMAlert kind: VMAlert
spec: spec: