Correct sample for node scrape configuration (#19491)

As node metrics should be scraped per node basis, use a sample
configuartion using all the nodes in targets.

Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
This commit is contained in:
Shubhendu 2024-04-12 21:19:30 +05:30 committed by GitHub
parent 8d39b715dc
commit d3a07c29ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -128,6 +128,8 @@ scrape_configs:
##### Node (optional)
Optionally you can also collect per node metrics. This needs to be done on a per server instance.
The scrape configurations should use all the servers under `targets` so that graphing systems like
grafana can visualize them for all the nodes
```yaml
scrape_configs:
@ -135,7 +137,7 @@ scrape_configs:
metrics_path: /minio/v2/metrics/node
scheme: http
static_configs:
- targets: ['localhost:9000']
- targets: ['server1:9000','server2:9000','server3:9000','server4:9000']
```
##### Resource (optional)