【发布时间】:2021-12-18 14:30:15
【问题描述】:
我正在使用 alertmanager 配置为从与其他 Prometheus/alertmanager 系统共享的 timescale 数据库中读取。
我想仅为包含特定标签的服务设置/检查警报,因此想知道如何将 prometheus 配置为仅适用于特定标签?
这是我目前正在使用的:
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets: ['localhost:9093']
remote_write:
- url: https://promscale.host:9201/write
remote_read:
- url: https://promscale.host:9201/read
read_recent: true
...
我发现有一个选项alert_relabel_configs,但我不清楚它的用法。
有什么想法吗?
【问题讨论】:
标签: prometheus-alertmanager timescaledb