prometheus.service.j2 503 B

12345678910111213141516
  1. [Unit]
  2. Description=Prometheus monitoring system
  3. After=syslog.target
  4. After=network.target
  5. [Service]
  6. Type=simple
  7. User={{ prometheus_user }}
  8. Group={{ prometheus_group }}
  9. WorkingDirectory={{ prometheus_home }}
  10. ExecStart={{ prometheus_home }}/prometheus/prometheus -config.file {{ prometheus_home }}/config.yml -web.listen-address 127.0.0.1:9090 -web.external-url {{ prometheus_web_url }}
  11. Restart=always
  12. Environment=USER={{ prometheus_user }} HOME={{ prometheus_home }}
  13. [Install]
  14. WantedBy=multi-user.target