Skip to the content.
# prometheus.yml

global:
  scrape_interval:     15s
  ...

rule_files:
  - 'alerts/*.yml'

scrape_configs:
  ...
# alerts/example-redis.yml

groups:

- name: ExampleRedisGroup
  rules:
  - alert: ExampleRedisDown
    expr: redis_up{} == 0
    for: 2m
    labels:
      severity: error
    annotations:
      summary: "Redis instance ($instance) down"
      description: "Whatever"