Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions deploy-grafana.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash

set -e

# Description: Dashboards and graphs for Prometheus metrics.
Expand All @@ -17,14 +18,14 @@ docker run --detach \
--memory=1g \
-p 0.0.0.0:3000:3000 \
-v ~/sourcegraph-docker/grafana-disk:/var/lib/grafana \
-v $(pwd)/grafana:/etc/grafana \
-v $(pwd)/grafana:/sg_config_grafana/provisioning/datasources \
-e GF_AUTH_ANONYMOUS_ENABLED=true \
-e GF_AUTH_ANONYMOUS_ORG_NAME=Sourcegraph \
-e GF_AUTH_ANONYMOUS_ORG_ROLE=Editor \
-e GF_USERS_ALLOW_SIGN_UP='false' \
-e GF_USERS_AUTO_ASSIGN_ORG='true' \
-e GF_USERS_AUTO_ASSIGN_ORG_ROLE=Editor \
grafana/grafana:6.1.1@sha256:e7a513bf7f33ef9681b2d35a799136e1ce9330f9055f75dfa2101d812946184b
sourcegraph/grafana:6.3.3@sha256:2f68b9b1542e7d75459d983b606d2fdd1c11a75610464e3d7a6ced4f3ac474bf

# Add the following lines above if you wish to use an auth proxy with Grafana:
#
Expand Down
11 changes: 4 additions & 7 deletions deploy-prometheus.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash

set -e

# Description: Prometheus collects metrics and aggregates them into graphs.
Expand All @@ -16,10 +17,6 @@ docker run --detach \
--cpus=4 \
--memory=8g \
-p 0.0.0.0:9090:9090 \
-v ~/sourcegraph-docker/prometheus-disk:/prometheus-data \
-v $(pwd)/prometheus:/etc/prometheus \
sourcegraph/prometheus:v1.4.1@sha256:1a02878ac9a0f532a68673bda93d406b21786706446c42a40cb3ed3e867278c0 \
-config.file=/etc/prometheus/prometheus.yml \
-storage.local.path=/prometheus-data \
-web.console.libraries=/etc/prometheus/console_libraries \
-web.console.templates=/etc/prometheus/consoles
-v ~/sourcegraph-docker/prometheus-disk:/prometheus \
-v $(pwd)/prometheus:/sg_prometheus_add_ons \
sourcegraph/prometheus:v2.12.0@sha256:aca8cf12d41cbf5d8885ed675fa017b83ad73af96d86bbe5bcead45ca8e958f3
6 changes: 0 additions & 6 deletions grafana/README.md

This file was deleted.

Loading