Skip to content

Commit 86645ec

Browse files
author
Bibas
committed
add regex in example
1 parent 9cc03c6 commit 86645ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/cockpit/how-to/federate-scaleway-metrics.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ scrape_configs:
4848
- '$SCW_READ_TOKEN'
4949
params:
5050
'match[]':
51-
- '{__name__="instance_server_cpu_seconds_total"}'
51+
- '{__name__="instance_.*"}'
5252
- '{region="fr-par"}'
5353
static_configs:
5454
- targets:
@@ -60,7 +60,7 @@ scrape_configs:
6060
</Message>
6161

6262
Modify the different `match[]` parameters according to the metrics you want to retrieve. In this example, you will federate:
63-
- All metrics called `instance_server_cpu_seconds_total`
63+
- All metrics with a name that starts with `instance_`
6464
- All metrics with the label `region` with the value `fr-par`
6565

6666
You can also set `honor_labels` to `false` if you prefer to not override the different labels that your Prometheus could set that conflict with Scaleway metrics label.

0 commit comments

Comments
 (0)