Bonjour à tous,
Je bute depuis quelques jours sur une métric de prometheus.
J'utilise node_exporter sur mes serveurs et je souhaite afficher simplement depuis quand un service est up.
J'ai essayé différents requêtes avec node_systemd_unit comme node_systemd_unit_time_seconds, mais je n'ai aucune data qui remonte.
Mon node_exporter.service est comme ca:
Une idée ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 [Unit] Description=Node Exporter After=network.target [Service] User=node_exporter Group=node_exporter Type=simple ExecStart=/usr/local/bin/node_exporter --web.listen-address=:9100 --collector.diskstats --no-collector.arp --no-collector.bcache --no-collector.conntrack --collector.cpu --no-collector.edac --no-collector.entropy --no-collector.filefd --no-collector.hwmon --no-collector.infiniband --no-collector.ipvs --no-collector.mdadm --no-collector.netstat --no-collector.vmstat --no-collector.wifi --no-collector.nfs --no-collector.xfs --no-collector.zfs --collector.loadavg --collector.meminfo --no-collector.netdev --collector.time --collector.timex --collector.ntp --no-collector.stat --no-collector.sockstat --collector.systemd --no-collector.uname --collector.textfile [Install] WantedBy=multi-user.target
Merci
Partager