Skip to content

bdossantos/prometheus-alert-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prometheus-alert-rules

CI

Usage

Prometheus configuration

# prometheus.yml

global:
  scrape_interval: 15s
  ...

rule_files:
  - 'rules/*.yml'
  # optional
  - 'slo-rules/*.yml'

scrape_configs:
  ...

Generate SLO prometheus rules

sloth generate -i slo-specs/ -o slo-rules/
prettier -w slo-rules/*