From a600cc36458552bdc578eb474a3af9d9c3214d93 Mon Sep 17 00:00:00 2001 From: Artem Navoiev Date: Wed, 19 Jul 2023 10:43:52 +0200 Subject: [PATCH] specify formating in vmalert doc Signed-off-by: Artem Navoiev --- docs/vmalert.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/vmalert.md b/docs/vmalert.md index 0393839adc..27e4d05b87 100644 --- a/docs/vmalert.md +++ b/docs/vmalert.md @@ -912,7 +912,7 @@ command-line flags with their descriptions. The shortlist of configuration flags is the following: {% raw %} -``` +```console -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 -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): For example: -``` +```yaml static_configs: - targets: - 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) is the following: -``` +```yaml # Per-target Notifier timeout when pushing alerts. [ timeout: | 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: + ```yaml kind: VMAlert spec: