~tomleb/promrule

66c1a3064e39273e9ff33c2a0a74de1c3135a42d — Tom Lebreux 2 years ago a66fb05 master
Add more complex example in the README
1 files changed, 3 insertions(+), 3 deletions(-)

M README.md
M README.md => README.md +3 -3
@@ 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