almost ready
This commit is contained in:
25
monitoring/prometheus/prometheus.service
Normal file
25
monitoring/prometheus/prometheus.service
Normal file
@@ -0,0 +1,25 @@
|
||||
# Prometheus is not in the Grafana apt repo, so install.sh drops the release binary into
|
||||
# /opt/prometheus and installs this unit. Flags: remote-write + OTLP receivers ON (Alloy and
|
||||
# Tempo push to it), 15-day local retention.
|
||||
[Unit]
|
||||
Description=Prometheus
|
||||
Documentation=https://prometheus.io/docs/
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
User=prometheus
|
||||
Group=prometheus
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
ExecStart=/opt/prometheus/prometheus \
|
||||
--config.file=/etc/prometheus/prometheus.yml \
|
||||
--storage.tsdb.path=/var/lib/prometheus \
|
||||
--storage.tsdb.retention.time=15d \
|
||||
--web.enable-remote-write-receiver \
|
||||
--web.enable-otlp-receiver \
|
||||
--web.listen-address=0.0.0.0:9090
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user