Add more complex example in the README
Fix not grouping nested aggregates
Initial commit
PromRule is a tool to manage your Prometheus rules.
This is very much WIP work.
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))'
See LICENSE.