Untitled

 avatar
unknown
plain_text
a year ago
523 B
6
Indexable
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
Editor is loading...
Leave a Comment