How to Run Prometheus server as a Service?

Step 1 – Create a file:

$ vi /etc/systemd/system/prometheus.service

Step 2 – Reload the Systemctl Daemon:

$ sudo systemctl daemon-reload

Step 3 – Start the Prometheus service:

$ sudo systemctl start prometheus
$ sudo systemctl status prometheus
Rajesh Kumar
Follow me