rename entrouvert-exporter as system-exporter

(but keep writing to entrouvert.prom for compatibility)
This commit is contained in:
Frédéric Péters 2021-06-06 08:44:43 +02:00
parent d7b52777d5
commit e0975b8d27
6 changed files with 11 additions and 8 deletions

View File

@ -1 +1 @@
prometheus-entrouvert-exporter/prometheus-entrouvert-exporter.py usr/bin
prometheus-entrouvert-exporter/prometheus-system-exporter.py usr/bin

View File

@ -0,0 +1,6 @@
[Unit]
Description=Collect system metrics
[Service]
Type=oneshot
ExecStart=/bin/bash -c "/usr/bin/prometheus-system-exporter.py | sponge /var/lib/prometheus/node-exporter/entrouvert.prom"

View File

@ -1,5 +1,5 @@
[Unit]
Description=Run entrouvert metrics collection every 15 minutes
Description=Run system metrics collection every 15 minutes
[Timer]
OnBootSec=0

View File

@ -1,6 +0,0 @@
[Unit]
Description=Collect Entrouvert metrics
[Service]
Type=oneshot
ExecStart=/bin/bash -c "/usr/bin/prometheus-entrouvert-exporter.py | sponge /var/lib/prometheus/node-exporter/entrouvert.prom"

3
debian/rules vendored
View File

@ -6,3 +6,6 @@
override_dh_auto_build:
dh_auto_build
cd sysadmin-doc; make html
override_dh_installsystemd:
dh_installsystemd --name=prometheus-system-exporter