From 9dfa00fefa74dab014d94e462e7184bc2905efc5 Mon Sep 17 00:00:00 2001 From: Mahad Zaryab Date: Sat, 16 Nov 2024 13:38:29 -0500 Subject: [PATCH] Fix Prometheus Health Endpoint Signed-off-by: Mahad Zaryab --- docker-compose/monitor/README.md | 2 +- scripts/spm-integration-test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose/monitor/README.md b/docker-compose/monitor/README.md index 2dfc46e9e9a..1d555de4880 100644 --- a/docker-compose/monitor/README.md +++ b/docker-compose/monitor/README.md @@ -81,7 +81,7 @@ docker compose -f docker-compose-v2.yml up **Tips:** - Let the application run for a couple of minutes to ensure there is enough time series data to plot in the dashboard. - Navigate to Jaeger UI at http://localhost:16686/ and inspect the Monitor tab. Select `redis` service from the dropdown to see more than one endpoint. -- To visualize the raw metrics stored on the Prometheus server (for debugging and local development use cases), use the built-in Prometheus UI at http://localhost:9090/graph. For example, http://localhost:9090/graph?g0.expr=traces_span_metrics_calls_total&g0.tab=0&g0.range_input=5m +- To visualize the raw metrics stored on the Prometheus server (for debugging and local development use cases), use the built-in Prometheus UI at http://localhost:9090/query. For example, http://localhost:9090/query?g0.expr=traces_span_metrics_calls_total&g0.tab=0&g0.range_input=5m **Warning:** The included [docker-compose.yml](./docker-compose.yml) file uses the `latest` version of Jaeger and other components. If your local Docker registry already contains older versions, which may still be tagged as `latest`, you may want to delete those images before running the full set, to ensure consistent behavior: diff --git a/scripts/spm-integration-test.sh b/scripts/spm-integration-test.sh index 718700294eb..6d1ac395276 100755 --- a/scripts/spm-integration-test.sh +++ b/scripts/spm-integration-test.sh @@ -66,7 +66,7 @@ check_service_health() { wait_for_services() { echo "Waiting for services to be up and running..." check_service_health "Jaeger" "http://localhost:16686" - check_service_health "Prometheus" "http://localhost:9090/graph" + check_service_health "Prometheus" "http://localhost:9090/query" } # Function to validate the service metrics