sudo useradd --system --shell /bin/false node_exporter
curl -fsSL https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-amd64.tar.gz \
| sudo tar -zxvf - -C /usr/local/bin --strip-components=1 node_exporter-1.3.1.linux-amd64/node_exporter \
&& sudo chown node_exporter:node_exporter /usr/local/bin/node_exporter
sudo tee /etc/systemd/system/node_exporter.service <<"EOF"
[Unit]
Description=Node Exporter
[Service]
User=node_exporter
Group=node_exporter
EnvironmentFile=-/etc/sysconfig/node_exporter
ExecStart=/usr/local/bin/node_exporter $OPTIONS
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload && \
sudo systemctl start node_exporter && \
sudo systemctl status node_exporter && \
sudo systemctl enable node_exporter
The branch got merged into master (started on that branch for animated schematics by accident so just PR'd it to master).
Now have node_exporter running on the temporary Droplet. And local prom on 9090 and local Grafana on 3000 with the node exporter full dashboard showing the stats for the remote DO instance.
Note that It's not recommended to deploy it as a Docker container because it requires access to the host system.
So there's a task to repeat this 'bare metal' install on do-set.
But first we will try to get the 'bare metal' CH install running on DO.
Then try the dockerised CH with metrics on DO