Docs / Monitoring & Logging / How to Set Up Prometheus for Server Monitoring

How to Set Up Prometheus for Server Monitoring

By Admin · Feb 25, 2026 · Updated Apr 23, 2026 · 310 views · 1 min read

Prometheus collects and stores time-series metrics from your server.

Install Node Exporter

useradd --no-create-home --shell /bin/false node_exporter\nwget https://github.com/prometheus/node_exporter/releases/download/v1.7.0/node_exporter-1.7.0.linux-amd64.tar.gz\ntar xzf node_exporter-1.7.0.linux-amd64.tar.gz\ncp node_exporter-1.7.0.linux-amd64/node_exporter /usr/local/bin/\nchown node_exporter:node_exporter /usr/local/bin/node_exporter

Create Systemd Service

[Unit]\nDescription=Node Exporter\nAfter=network.target\n\n[Service]\nUser=node_exporter\nExecStart=/usr/local/bin/node_exporter\n\n[Install]\nWantedBy=multi-user.target
systemctl daemon-reload\nsystemctl enable --now node_exporter

Metrics available at http://localhost:9100/metrics

Was this article helpful?