aboutsummaryrefslogtreecommitdiff
path: root/contrib/prometheus-pacman-exporter.timer
diff options
context:
space:
mode:
authorDennis Fink2026-09-20 00:38:55 +0200
committerDennis Fink2026-09-20 00:38:55 +0200
commit0f1d5637df9286af9999fc7d1c03025e82ffda34 (patch)
tree1a5e25660fd0a43c7f8bfcd1a11210333fabc6d1 /contrib/prometheus-pacman-exporter.timer
parent37e62c47973e7d1e9a9d43e7480e9f393dc77a0e (diff)
downloadprometheus-pacman-exporter-0f1d5637df9286af9999fc7d1c03025e82ffda34.tar.gz
prometheus-pacman-exporter-0f1d5637df9286af9999fc7d1c03025e82ffda34.zip
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.
Diffstat (limited to 'contrib/prometheus-pacman-exporter.timer')
-rw-r--r--contrib/prometheus-pacman-exporter.timer11
1 files changed, 11 insertions, 0 deletions
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