Untitled

mail@pastecode.io avatar
unknown
plain_text
22 days ago
523 B
2
Indexable
Never
cat > /etc/systemd/system/prometheus.service <<EOL
[Unit]
Description=Prometheus 
After=network.target

[Service]
User=prometheus
Group=prometheus
Type=simple
ExecStart=/usr/local/bin/prometheus \
  --config.file=/etc/prometheus/prometheus.yml \
  --storage.tsdb.path=/var/lib/prometheus/ \
  --web.console.templates=/usr/share/prometheus/consoles \
  --web.config.file=/etc/prometheus/web.yml \
  --web.console.libraries=/usr/share/prometheus/console_libraries

[Install]
WantedBy=multi-user.target
EOL
Leave a Comment