coreos-home-server/service/prometheus/quadlet/prometheus.container
Alex Palaistras 733130db8d Increase start timeout for Prometheus and Grafana
Containers for Prometheus and Grafana can take longer to start due to
migrations on large databases etc., which in turn can cause systemd to
kill these mid-execution.
2023-12-14 12:15:50 +00:00

22 lines
536 B
Plaintext

[Unit]
Description=Prometheus Systems and Service Monitoring
Wants=container-build@%N.service container-volume@%N.service
After=container-build@%N.service container-volume@%N.service
[Container]
AutoUpdate=local
ContainerName=%N
HealthCmd=timeout 5s curl --fail --silent --show-error -o /dev/null localhost:9090
Image=localhost/%N:latest
Network=internal
PodmanArgs=--sdnotify=healthy
Volume=%N:/var/lib/%N:z
Volume=%N-service:/etc/%N/service.d:z
[Service]
TimeoutStartSec=180
Restart=on-failure
[Install]
WantedBy=multi-user.target