Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/tool/rules/testdata/loki_basic.yaml

11 lines
321 B

groups:
- name: testgrp2
interval: 0s
rules:
- alert: HTTPCredentialsLeaked
expr: sum by (cluster, job, pod) (rate({namespace=~"%s"} |~ "http(s?)://(\\w+):(\\w+)@" [5m]) > 0)
for: 2m
labels:
severity: page
annotations:
summary: High request latency