Advertisement
TCOOfficiall

Prometheus Config

Dec 6th, 2024 (edited)
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.35 KB | None | 0 0
  1. [Unit]
  2. Description=Prometheus Service
  3. After=network.target
  4.  
  5. [Service]
  6. User=prometheus
  7. Group=prometheus
  8. Type=simple
  9. ExecStart=/usr/local/bin/prometheus \
  10.     --config.file /etc/prometheus/prometheus.yml \
  11.     --storage.tsdb.path /var/lib/prometheus/
  12. ExecReload=/bin/kill -HUP $MAINPID
  13. Restart=on-failure
  14.  
  15. [Install]
  16. WantedBy=multi-user.target
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement