VictoriaMetrics Integration
Integrate VictoriaMetrics with ilert to forward Prometheus‑based alerts for metric threshold breaches to on‑call engineering teams.
Last updated
Was this helpful?
Integrate VictoriaMetrics with ilert to forward Prometheus‑based alerts for metric threshold breaches to on‑call engineering teams.
Last updated
Was this helpful?
Was this helpful?
route:
receiver: ilert
receivers:
- name: "ilert"
webhook_configs:
- url: "<your alert source url here>"
send_resolved: truereceivers:
- name: "high-priority"
webhook_configs:
# high priority alert source url
- url: "<your high priority alert source url here>"
send_resolved: true
- name: "low-priority"
webhook_configs:
# low priority alert source url
- url: "<your low priority alert source url here>"
send_resolved: truegroups:
- name: vm-health
rules:
- alert: TooManyRestarts
expr: changes(process_start_time_seconds{job=~".*(victoriametrics|vmselect|vminsert|vmstorage|vmagent|vmalert|vmsingle|vmalertmanager|vmauth).*"}[2m]) > 2
labels:
severity: critical
annotations:
summary: "{{ $labels.job }} too many restarts (instance {{ $labels.instance }})"
description: "Job {{ $labels.job }} (instance {{ $labels.instance }}) has restarted more than twice in the last 15 minutes.
It might be crashlooping."./bin/vmalert -rule=alert.rules \ # Path to the file with rules configuration. Supports wildcard
-datasource.url=http://localhost:8428 \ # Prometheus HTTP API compatible datasource
-notifier.url=http://localhost:9093 \ # AlertManager URL (required if alerting rules are used)
-notifier.url=http://127.0.0.1:9093 \ # AlertManager replica URL
-remoteWrite.url=http://localhost:8428 \ # Remote write compatible storage to persist rules and alerts state info (required if recording rules are used)
-remoteRead.url=http://localhost:8428 \ # Prometheus HTTP API compatible datasource to restore alerts state from
-external.label=cluster=east-1 \ # External label to be applied for each rule
-external.label=replica=a # Multiple external labels may be set