mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-05 08:45:20 -07:00
* prometheus: cleanup README * prometheus: use new disk folder to make upgrading seamless * undo whitespace change * prometheus: add back docker.rules
22 lines
697 B
Bash
Executable File
22 lines
697 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)
|
|
#
|
|
docker run --detach \
|
|
--name=prometheus \
|
|
--network=sourcegraph \
|
|
--restart=always \
|
|
--cpus=4 \
|
|
--memory=8g \
|
|
-p 0.0.0.0:9090:9090 \
|
|
-v ~/sourcegraph-docker/prometheus-v2-disk:/prometheus \
|
|
-v $(pwd)/prometheus:/sg_prometheus_add_ons \
|
|
sourcegraph/prometheus:v2.12.0@sha256:aca8cf12d41cbf5d8885ed675fa017b83ad73af96d86bbe5bcead45ca8e958f3
|