@@ 12,19 12,19 @@ Currently, PromRule only supports adding grouping to rules. For example, you can
go from the following expression
```
-sum by (application) (http_requests_total)
+sum(count by (name) (my_metric))
```
to this expression
```
-sum by (application, tenant) (http_requests_total)
+sum by (tenant, cluster) (count by (name, tenant, cluster) (my_metric))
```
by running the following command:
```sh
-./promrule --groupings tenant --expr 'sum by (application) (http_requests_total)'
+./promrule --groupings tenant,cluster --expr 'sum(count by (name) (my_metric))'
```
# License