mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-04 00:05:19 -07:00
* 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>
31 lines
957 B
Bash
Executable File
31 lines
957 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
source ./replicas.sh
|
|
|
|
# Description: Publishes Prometheus metrics about the machine's hardware / operating system.
|
|
#
|
|
# Disk: none
|
|
# Ports exposed to other Sourcegraph services: 9100/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
sudo docker run --detach \
|
|
--name=node-exporter \
|
|
--network=sourcegraph \
|
|
--restart=always \
|
|
--cpus=0.5 \
|
|
--memory=1g \
|
|
--pid='host' \
|
|
--volume=/:/rootfs:ro \
|
|
--volume=/proc:/host/proc:ro \
|
|
--volume=/sys:/host/sys:ro \
|
|
-p 0.0.0.0:9100:9100 \
|
|
index.docker.io/sourcegraph/node-exporter:187572_2022-12-06_cbecc5321c7d@sha256:2d9dcdf0b2226f0c3d550a64d2667710265462350a3ba9ebe37d0302bc64af0f \
|
|
'--path.procfs=/host/proc' \
|
|
'--path.rootfs=/rootfs' \
|
|
'--path.sysfs=/host/sys' \
|
|
'--no-collector.wifi' \
|
|
'--no-collector.hwmon' \
|
|
'--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
|
|
|
|
echo "Deployed node-exporter"
|