From fb3aa067ef8c5812853cc90cad28a180fc0432ef Mon Sep 17 00:00:00 2001 From: Gilles Mouchet Date: Mon, 9 Jun 2025 08:50:16 +0200 Subject: [PATCH] update README.md --- README.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5835f7d..3396178 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,9 @@ This dokcer run stack grafana, loki, promtail, minio | -proxy-1 | `https://` | nginx proxy | -minio-1 | UI: `https:///minio/ui`
API: `http://127.0.0.1:9000`| container minio server UI and API | | -grafana-1 | `https:///grafana` | grafana | -| -minio-cli-1 | - | client minio | +| -minio-cli-1 | - | client minio | +| -prometheus-1 | `http://:9090` | prometheus | +| -node-exporter-1 | - | node metrics for prometheus | ## Requirements ### Certificats Create a folder named `/home/docker/certs` and copy your certificates into it. @@ -125,9 +127,26 @@ docker exec -it -minio-cli-1 /bin/sh **grafana** `https:///grafana/` -**prometheus** +**prometheus** `http://:9090` +## Metrics access +**node-exporter** +```bash +docker exec -it -proxy-1 /bin/sh -c "curl http://node-exporter:9100/metrics" +``` +**prometheus** +```bash +docker exec -it -proxy-1 /bin/sh -c "curl http://prometheus:9090/metrics" +``` +**minio** +```bash +TOKEN=$(echo "Authorization: Bearer $(grep "bearer_token" config/prometheus.yml | cut -d':' -f2 |cut -d' ' -f2)") +``` +```bash +docker exec -it gmo-loki-proxy-1 /bin/bash -c "curl -H \"Accept: application/json\" -H \"${TOKEN}\" http://minio:9000/minio/v2/metrics/cluster" +``` + ## Sources ### Minio * https://github.com/Anagraph/minio-docker-config/blob/master/docker-compose.yaml