Skip to content

Commit 584addf

Browse files
committed
Configure collector.textfile for node exporter
Future metrics can write text files for metrics, this will be useful for tracking archive upload lag & LSNs
1 parent d502d3f commit 584addf

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

common/assets/node_exporter.service

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ ExecStart=/usr/bin/node_exporter \
1717
--collector.meminfo \
1818
--collector.netdev \
1919
--collector.uname \
20+
--collector.textfile \
21+
--collector.textfile.directory=/var/lib/node_exporter \
2022
--web.disable-exporter-metrics \
2123
--collector.diskstats.device-exclude="^(z?ram|loop|fd|(h|s|v|xv)d[a-z]|nvme\\d+n\\d+p)\\d+$|vda|vdc" \
2224
--collector.filesystem.mount-points-exclude="^/(dev|proc|run|sys|var|boot|)($|/)"

common/setup_monitoring.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ echo "=== [setup_monitoring.sh] Installing systemd service files ==="
4545
echo "[setup_monitoring.sh] Copying systemd unit files..."
4646
cp /tmp/common/assets/prometheus.service /etc/systemd/system/prometheus.service
4747
cp /tmp/common/assets/node_exporter.service /etc/systemd/system/node_exporter.service
48+
mkdir -p /var/lib/node_exporter
4849
cp /tmp/common/assets/postgres_exporter.service /etc/systemd/system/postgres_exporter.service
4950
cp /tmp/common/assets/wal-g.service /etc/systemd/system/wal-g.service
5051

0 commit comments

Comments
 (0)