From 941cd4606e9c41a4ec1cdb46f51e22900151bbe7 Mon Sep 17 00:00:00 2001 From: Aaron Gibson Date: Wed, 18 Nov 2026 16:47:30 +0000 Subject: [PATCH] fastpath: restart statsd-exporter after a reboot The container had no restart policy, so Docker's default "no" left it stopped after a reboot or a Docker restart until the next deploy of fastpath started it again. --- ansible/roles/fastpath/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/fastpath/tasks/main.yml b/ansible/roles/fastpath/tasks/main.yml index 164bd0df..5ef5a5e0 100644 --- a/ansible/roles/fastpath/tasks/main.yml +++ b/ansible/roles/fastpath/tasks/main.yml @@ -199,6 +199,9 @@ name: statsd-exporter image: prom/statsd-exporter:v0.28.0 state: started + # Without it Docker's default is "no": the exporter stays down after a + # reboot or a Docker restart until the next deploy starts it + restart_policy: always published_ports: - "9102:9102" # for /metrics - "8125:9125" # for reporting metrics