From d3a07c29baaa4707c919e8c086a1b59fbe68d74f Mon Sep 17 00:00:00 2001 From: Shubhendu Date: Fri, 12 Apr 2024 21:19:30 +0530 Subject: [PATCH] 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 --- docs/metrics/prometheus/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/metrics/prometheus/README.md b/docs/metrics/prometheus/README.md index f4b45d13a..0921ae675 100644 --- a/docs/metrics/prometheus/README.md +++ b/docs/metrics/prometheus/README.md @@ -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)