Add comment explaining prometheus arguments

This commit is contained in:
Wojciech Kozlowski 2023-11-10 19:17:11 +01:00
parent 6c2daa7391
commit 3bb8704c15

View File

@ -27,6 +27,9 @@ ExecStart=/usr/bin/podman run \
-v {{ services_data_directory }}/pod-metrics/data/_data:/prometheus:U \
--name=pod-metrics-prometheus \
docker.io/prom/prometheus:{{ services_service_deploy_versions.prometheus }}
# Careful about appending CLI arguments - in addition to the new arguments, all the arguments from
# the upstream Dockerfile must also be re-appended and it is not possible it use the configuration
# file to configure some arguments: https://github.com/prometheus/prometheus/issues/6188
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/container-metrics-prometheus.ctr-id -t 10
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/container-metrics-prometheus.ctr-id
PIDFile=%t/container-metrics-prometheus.pid