Loki integration
Feed Loki log alerts into ilert to alert on-call teams to error conditions or anomalies detected in your logs with fast escalation.
Last updated
Was this helpful?
Was this helpful?
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: loki-critical
rules:
- alert: stackoverflow
expr: |
count_over_time({app=~".+"} |= "StackOverflow" [5m]) > 0
for: 0m
labels:
severity: critical
annotations:
summary: StackOverflow alert
description: "StackOverflow logs found\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"ruler:
alertmanager_url: http://alertmanager:9093
enable_api: true
enable_alertmanager_v2: true
storage:
type: local
local:
directory: /etc/alertmanager