From 8ac0deb7465bf75c3bb2c67837f8ef487b61b100 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Mon, 8 Apr 2019 23:08:09 -0700 Subject: [PATCH] docs --- metrics-and-tracing.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metrics-and-tracing.md b/metrics-and-tracing.md index 42d4033..b4f851b 100644 --- a/metrics-and-tracing.md +++ b/metrics-and-tracing.md @@ -45,9 +45,10 @@ Grafana queries Prometheus to provide dashboards with high-level insight into So To use Grafana and Prometheus after running `deploy.sh`: +1. If running on a Linux host, you may need to `sudo chown -R 472:472 ~/sourcegraph-docker/grafana-disk` in order to correct the permissions of the Grafana disk so that it starts. 1. If you have multiple replicas of searcher/gitserver/etc, open `prometheus/prometheus_targets.yml` in an editor and duplicate lines as needed so that Prometheus knows to scrape those services for metrics. Save the file, then `docker restart prometheus` to apply the changes. 1. Visit grafana in a browser (e.g. at http://localhost:3000) and sign in using the default credentials `admin` > `admin`. -1. Add Prometheus as a data source: **Gear icon** > **Data sources** > **Add data source** > **Prometheus** > enter the Prometheus URL (e.g. `http://localhost:9090` on Linux or `http://docker.for.mac.localhost:9090` on Mac). +1. Add Prometheus as a data source: **Gear icon** > **Data sources** > **Add data source** > **Prometheus** > enter the Prometheus URL `http://prometheus:9090`. 1. You can now visit any dashboards via: **Dashboard icon** > **Home** > **Home dropdown in top-left** > ****. ### Sourcegraph standard dashboards