-
Notifications
You must be signed in to change notification settings - Fork 570
Expand file tree
/
Copy pathdeploy-node-exporter.sh
More file actions
30 lines (28 loc) · 957 Bytes
/
deploy-node-exporter.sh
File metadata and controls
30 lines (28 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/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"