Containers introduce overhead and networking abstractions that obscure native OS behaviors. This guide demonstrates how to install, configure, and monitor Prometheus, Loki, and Grafana natively as user-space processes on host operating systems.
Systemd Service Customization
To achieve process-level lifecycle management without root privileges, Prometheus and Promtail can be registered under systemd user service configurations. Placing service files in ~/.config/systemd/user/ allows standard user execution on startup:
[Unit]
Description=Loki Log Ingestion Service
After=network.target
[Service]
ExecStart=/home/robert/telemetry/loki/loki-linux-amd64 -config.file=/home/robert/telemetry/loki/loki-local-config.yaml
Restart=on-failure
[Install]
WantedBy=default.target
Scraping & Alerting Architecture
Promtail monitors the application log directories, streaming logs to Loki, while Prometheus scrapes Node.js performance metrics (memory footprint, response latency, and request volumes) via an internal metrics endpoint. This telemetry data feeds directly into Grafana, which operates behind Nginx reverse proxy directives, supplying responsive visual monitoring of the entire multi-tenant server space.
