Install Prometheus Exporter
WINDOWS INSTALLATION
Download the exporter from prometheus
https://prometheus.io/download/
Unzip the file
Install nssm via chocolatey
choco install nssm
Choose the file name and give a service name
Give the argument
--web.listen-address=:9182
You are done you can check the URL
http://emalw105322:9182/metrics
LINUX INSTALLATION
Raspberry PI download:
https://linuxhit.com/prometheus-node-exporter-on-raspberry-pi-how-to-install/
Linux desktop
https://prometheus.io/download/
sudo useradd --system --no-create-home --shell /usr/sbin/nologin prometheus
sudo mv node_exporter /usr/local/bin/
sudo chown prometheus:prometheus /usr/local/bin/node_exporter
sudo nano /etc/systemd/system/node_exporter.service
sudo nano /etc/systemd/system sudo systemctl enable --now node_exporter/node_exporter.service \<\<EOF
[Unit]
Description=Prometheus Node Exporter
Documentation=https://prometheus.io/docs/introduction/overview/
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=prometheus
Group=prometheus
ExecReload=/bin/kill -HUP $MAINPID
ExecStart= /usr/local/bin/node_exporter
SyslogIdentifier=prometheus_node_exporter
Restart=always
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now node_exporter
``