~tomleb/promrule

Manage Prometheus rules
Add more complex example in the README
Fix not grouping nested aggregates
Initial commit

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~tomleb/promrule
read/write
git@git.sr.ht:~tomleb/promrule

You can also use your local clone with git send-email.

#PromRule

PromRule is a tool to manage your Prometheus rules.

This is very much WIP work.

#Features

Currently, PromRule only supports adding grouping to rules. For example, you can go from the following expression

sum(count by (name) (my_metric))

to this expression

sum by (tenant, cluster) (count by (name, tenant, cluster) (my_metric))

by running the following command:

./promrule --groupings tenant,cluster --expr 'sum(count by (name) (my_metric))'

#License

See LICENSE.