From 4d09da70554037ec64ebd9a413826d5fac68dd19 Mon Sep 17 00:00:00 2001 From: Robert Lin Date: Wed, 8 Jul 2020 13:19:24 +0800 Subject: [PATCH] add SRC_FRONTEND_INTERNAL to prometheus, remove from grafana (#122) --- .prettierignore | 1 + deploy-grafana.sh | 3 +-- deploy-prometheus.sh | 3 ++- docker-compose/docker-compose.yaml | 10 +++++----- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.prettierignore b/.prettierignore index bb0224d..10c798b 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ .github/ +*.md diff --git a/deploy-grafana.sh b/deploy-grafana.sh index 3ebf67c..7519a03 100755 --- a/deploy-grafana.sh +++ b/deploy-grafana.sh @@ -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: # diff --git a/deploy-prometheus.sh b/deploy-prometheus.sh index 2bfb4af..4b882d0 100755 --- a/deploy-prometheus.sh +++ b/deploy-prometheus.sh @@ -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 diff --git a/docker-compose/docker-compose.yaml b/docker-compose/docker-compose.yaml index 0dc8f50..d375715 100644 --- a/docker-compose/docker-compose.yaml +++ b/docker-compose/docker-compose.yaml @@ -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.