mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 15:29:24 +01:00
update wiki pages
parent
926dca6291
commit
146e60d6ff
18
vmalert.md
18
vmalert.md
@ -52,7 +52,7 @@ To start using `vmalert` you will need the following things:
|
|||||||
* list of rules - PromQL/MetricsQL expressions to execute;
|
* list of rules - PromQL/MetricsQL expressions to execute;
|
||||||
* datasource address - reachable MetricsQL endpoint to run queries against;
|
* datasource address - reachable MetricsQL endpoint to run queries against;
|
||||||
* notifier address [optional] - reachable [Alert Manager](https://github.com/prometheus/alertmanager) instance for processing,
|
* notifier address [optional] - reachable [Alert Manager](https://github.com/prometheus/alertmanager) instance for processing,
|
||||||
aggregating alerts, and sending notifications. Please note, notifier address also supports Consul Service Discovery via
|
aggregating alerts, and sending notifications. Please note, notifier address also supports Consul and DNS Service Discovery via
|
||||||
[config file](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/app/vmalert/notifier/config.go).
|
[config file](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/app/vmalert/notifier/config.go).
|
||||||
* remote write address [optional] - [remote write](https://prometheus.io/docs/prometheus/latest/storage/#remote-storage-integrations)
|
* remote write address [optional] - [remote write](https://prometheus.io/docs/prometheus/latest/storage/#remote-storage-integrations)
|
||||||
compatible storage to persist rules and alerts state info;
|
compatible storage to persist rules and alerts state info;
|
||||||
@ -850,8 +850,9 @@ Notifier also supports configuration via file specified with flag `notifier.conf
|
|||||||
-notifier.config=app/vmalert/notifier/testdata/consul.good.yaml
|
-notifier.config=app/vmalert/notifier/testdata/consul.good.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
The configuration file allows to configure static notifiers or discover notifiers via
|
The configuration file allows to configure static notifiers, discover notifiers via
|
||||||
[Consul](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#consul_sd_config).
|
[Consul](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#consul_sd_config)
|
||||||
|
and [DNS](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#dns_sd_config):
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -864,6 +865,12 @@ consul_sd_configs:
|
|||||||
- server: localhost:8500
|
- server: localhost:8500
|
||||||
services:
|
services:
|
||||||
- alertmanager
|
- alertmanager
|
||||||
|
|
||||||
|
dns_sd_configs:
|
||||||
|
- names:
|
||||||
|
- my.domain.com
|
||||||
|
type: 'A'
|
||||||
|
port: 9093
|
||||||
```
|
```
|
||||||
|
|
||||||
The list of configured or discovered Notifiers can be explored via [UI](#Web).
|
The list of configured or discovered Notifiers can be explored via [UI](#Web).
|
||||||
@ -915,6 +922,11 @@ static_configs:
|
|||||||
consul_sd_configs:
|
consul_sd_configs:
|
||||||
[ - <consul_sd_config> ... ]
|
[ - <consul_sd_config> ... ]
|
||||||
|
|
||||||
|
# List of DNS service discovery configurations.
|
||||||
|
# See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#dns_sd_config
|
||||||
|
dns_sd_configs:
|
||||||
|
[ - <dns_sd_config> ... ]
|
||||||
|
|
||||||
# List of relabel configurations for entities discovered via service discovery.
|
# List of relabel configurations for entities discovered via service discovery.
|
||||||
# Supports the same relabeling features as the rest of VictoriaMetrics components.
|
# Supports the same relabeling features as the rest of VictoriaMetrics components.
|
||||||
# See https://docs.victoriametrics.com/vmagent.html#relabeling
|
# See https://docs.victoriametrics.com/vmagent.html#relabeling
|
||||||
|
Loading…
Reference in New Issue
Block a user