From 0f1d5637df9286af9999fc7d1c03025e82ffda34 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sun, 20 Sep 2026 00:38:55 +0200 Subject: feat(systemd): add service and timer units Add a hardened oneshot service for running the exporter with arguments loaded from /etc/conf.d/prometheus-pacman-exporter. Add a persistent daily timer for automatic metric collection and include a default empty configuration file for additional command-line options. --- contrib/prometheus-pacman-exporter.timer | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 contrib/prometheus-pacman-exporter.timer (limited to 'contrib/prometheus-pacman-exporter.timer') diff --git a/contrib/prometheus-pacman-exporter.timer b/contrib/prometheus-pacman-exporter.timer new file mode 100644 index 0000000..391b957 --- /dev/null +++ b/contrib/prometheus-pacman-exporter.timer @@ -0,0 +1,11 @@ +[Unit] +Description=Run Pacman Prometheus metrics exporter daily +After=network.target + +[Timer] +OnCalendar=daily +AccuracySec=1h +Persistent=true + +[Install] +WantedBy=timers.target -- cgit v1.3.1