add SRC_FRONTEND_INTERNAL to prometheus, remove from grafana (#122)

This commit is contained in:
Robert Lin authored and GitHub committed 2020-07-08 13:19:24 +08:00
1 parent 8654506828
commit 4d09da7055
4 files changed
+9 -8

No files matched your search

+1
View File
@@ -1 +1,2 @@
.github/
*.md
+1 -2
View File
@@ -21,8 +21,7 @@ docker run --detach \
-v $VOLUME:/var/lib/grafana \
-v $(pwd)/grafana/datasources:/sg_config_grafana/provisioning/datasources \
-v $(pwd)/grafana/dashboards:/sg_grafana_additional_dashboards \
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
index.docker.io/sourcegraph/grafana:3.17.2@sha256:f390384e2f57f3aba4eae41e51340a541a5b7a82ee16bdcea3cd9520423f193a
index.docker.io/sourcegraph/grafana:insiders@sha256:e12b505a26a96a5440303186cba03d7d15ff86ea871035af3b6a5891b7ce7664
# Add the following lines above if you wish to use an auth proxy with Grafana:
#
+2 -1
View File
@@ -20,4 +20,5 @@ docker run --detach \
-p 0.0.0.0:9090:9090 \
-v $VOLUME:/prometheus \
-v $(pwd)/prometheus:/sg_prometheus_add_ons \
index.docker.io/sourcegraph/prometheus:3.17.2@sha256:a725419a532fb17f6955e80f8a2f35efe15287c0a556e4fe7168d5fc6ff730d8
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
index.docker.io/sourcegraph/prometheus:insiders@sha256:d10adb5e057d5a53eced032b836595f24883077f77e2a95ea2e400bd6896ed7c
+5 -5
View File
@@ -39,7 +39,7 @@ services:
# - '../caddy/builtins/https.lets-encrypt-staging.Caddyfile:/etc/caddy/Caddyfile'
#
# Uncomment the following line when using HTTPS with Let's Encrypt's production environment
# IMPORTANT: Strongly recommended to test with the staging configuration above first, see that file for details.
# IMPORTANT: Strongly recommended to test with the staging configuration above first, see that file for details.
# - '../caddy/builtins/https.lets-encrypt-prod.Caddyfile:/etc/caddy/Caddyfile'
#
# Uncomment the following line when using HTTPS with custom certificates
@@ -424,7 +424,7 @@ services:
#
prometheus:
container_name: prometheus
image: 'index.docker.io/sourcegraph/prometheus:3.17.2@sha256:a725419a532fb17f6955e80f8a2f35efe15287c0a556e4fe7168d5fc6ff730d8'
image: 'index.docker.io/sourcegraph/prometheus:insiders@sha256:d10adb5e057d5a53eced032b836595f24883077f77e2a95ea2e400bd6896ed7c'
cpus: 4
mem_limit: '8g'
volumes:
@@ -449,15 +449,13 @@ services:
# 'GF_SERVER_ROOT_URL='https://grafana.example.com'
grafana:
container_name: grafana
image: 'index.docker.io/sourcegraph/grafana:3.17.2@sha256:f390384e2f57f3aba4eae41e51340a541a5b7a82ee16bdcea3cd9520423f193a'
image: 'index.docker.io/sourcegraph/grafana:insiders@sha256:e12b505a26a96a5440303186cba03d7d15ff86ea871035af3b6a5891b7ce7664'
cpus: 1
mem_limit: '1g'
volumes:
- 'grafana:/var/lib/grafana'
- '../grafana/datasources:/sg_config_grafana/provisioning/datasources'
- '../grafana/dashboards:/sg_grafana_additional_dashboards'
environment:
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
ports:
- '0.0.0.0:3370:3370'
networks:
@@ -486,6 +484,8 @@ services:
restart: always
command:
- --port=8080
environment:
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
# Description: Jaeger all-in-one instance
# (https://www.jaegertracing.io/docs/1.17/getting-started/#all-in-one) for distributed tracing.