pyrra icon indicating copy to clipboard operation
pyrra copied to clipboard

SLO publishing workflow

Open harmw opened this issue 2 years ago • 1 comments

My setup is simple: prometheus (dockerized) on EC2 and grafana somewhere else. Works, solid and simple.

I'm looking at pyrra to manage SLOs. Prometheus needs the rules (recording rules) and configuration on its local filesystem. So I'm currently running pyrra with the filesystem argument. This picks up local changes, generates SLO yaml specs and reloads prometheus. This seems useful.

The problem now comes when my teams need to update or add SLOs. Running ansible to update the prometheus machine with some new SLO files is just not flexible.

I'm thinking to extend the filesystem way of operating to accept new SLO specs over HTTP and write them out to the filesystem, thus triggering the okay-prometheus-now-go-reload. Ultimately, we'd be managing these SLO specs in a dedicated git repo, from where they would be pushed and put in production.

Would that make sense or is there some preferred way of refreshing the specs on disk that I just haven't seen yet?

harmw avatar Sep 14 '23 15:09 harmw

@metalmatze I did some work on this in #914, interested to understand if I'm on the correct path here though 😅

harmw avatar Sep 15 '23 14:09 harmw