From 306e7bfa892211d4a49e2051c90be95ee65befb7 Mon Sep 17 00:00:00 2001 From: Sarah Zinger Date: Fri, 4 Aug 2023 15:00:05 -0400 Subject: [PATCH] Documentation: Clarify how to use prometheus locally (#72846) Co-authored-by: Fiona Artiaga <89225282+GrafanaWriter@users.noreply.github.com> --- contribute/backend/instrumentation.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contribute/backend/instrumentation.md b/contribute/backend/instrumentation.md index e87f628ed77..65416edf842 100644 --- a/contribute/backend/instrumentation.md +++ b/contribute/backend/instrumentation.md @@ -140,13 +140,15 @@ If you want to guarantee the existence of metrics before any observations has ha ### How to collect and visualize metrics locally +1. Ensure you have Docker installed and running on your machine 1. Start Prometheus ```bash make devenv sources=prometheus ``` -2. Use Grafana Explore or dashboards to query any exported Grafana metrics +1. Run Grafana, and create a Prometheus datasource if you do not have one yet. Set the server URL to `http://localhost:9090`, enable basic auth, and type in the same auth you have for local Grafana +1. Use Grafana Explore or dashboards to query any exported Grafana metrics. You can also view them at http://localhost:3000/metrics ## Traces