Node Exporter Ubuntu

Download, Extract and move the executable

(Hier findet man das Aktuellste: https://prometheus.io/download/#prometheus)

wget https://github.com/prometheus/node_exporter/releases/download/v1.5.0/node_exporter-1.5.0.linux-amd64.tar.gz
tar xvfz node_exporter-1.5.0.linux-amd64.tar.gz
mv node_exporter-1.5.0.linux-amd64/node_exporter /usr/local/bin/
rm -rf node_exporter-1.5.0.linux-amd64*

Nodeuser anlegen

sudo useradd --no-create-home --shell /bin/false nodeuser
sudo chown -R nodeuser:nodeuser /usr/local/bin/node_exporter

Service anlegen

sudo nano /etc/systemd/system/node_exporter.service

Folgendes in das File schreiben:

[Unit]
Description=Node Exporter Service
After=network.target

[Service]
User=nodeuser
Group=nodeuser
ExecStart=/usr/local/bin/node_exporter
Type=simple
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure

[Install]
WantedBy=multi-user.target

Service starten und enablen

systemctl start node_exporter
systemctl enable node_exporter

Achtung: Derzeit kann jeder der den Port 9100 der VM erreichen kann, kann die System-und Performancedaten daten auslesen. Für Produktionsumgebungen eventuell strenger konfiguriern.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Scroll to Top