Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 510 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 510 Bytes

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/*