Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

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