Files
deploy-sourcegraph-docker/pure-docker/deploy-prometheus.sh
T
Stephen Gutekanst b5f8cb92a8 all: replace minio with sourcegraph/blobstore (#883)
* all: replace minio with sourcegraph/blobstore
* all: bump image tags for blobstore change
* pure-docker: update image tags (manually)

Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
2022-12-06 13:57:39 -07:00

25 lines
857 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# Description: Prometheus collects metrics and aggregates them into graphs.
#
# Disk: 200GB / persistent SSD
# Network: 100mbps
# Liveness probe: n/a
# Ports exposed to other Sourcegraph services: none
# Ports exposed to the public internet: none (HTTP 9090 should be exposed to admins only)
#
VOLUME="$HOME/sourcegraph-docker/prometheus-v2-disk"
./ensure-volume.sh $VOLUME 100
docker run --detach \
--name=prometheus \
--network=sourcegraph \
--restart=always \
--cpus=4 \
--memory=8g \
-p 0.0.0.0:9090:9090 \
-v $VOLUME:/prometheus \
-v $(pwd)/../prometheus:/sg_prometheus_add_ons \
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
index.docker.io/sourcegraph/prometheus:187572_2022-12-06_cbecc5321c7d@sha256:2113ccab80409e995ee7ed9a3d386051f4ca73186375a3a0d7e3d55c90fa2007