Linux xxx 3.10.0-1160.45.1.el7.x86_64 #1 SMP Fri Sep 24 10:17:16 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
node_exporter version: output of node_exporter --versionnode_exporter, version 1.2.2 (branch: HEAD, revision: 2664536)
build user: root@b9cb4aa2eb17
build date: 20210806-13:44:18
go version: go1.16.7
platform: linux/amd64
N.A.
Are you running node_exporter in Docker?NO
What did you do that produced an error?I am running node_exporter as a systemd service with the following service file in /etc/systemd/system:
[Unit]
Description=Node Exporter
Wants=network-online.target
After=network-online.target
[Service]
User=prometheus
Group=prometheus
Type=simple
RemainAfterExit=true
ExecStart=/var/opt/EAI/prometheus/node_exporter/node_exporter
[Install]
WantedBy=multi-user.target
The service is running only for a short time and is getting stopped regularly. The systemd status is:
● node_exporter.service - Node Exporter
Loaded: loaded (/etc/systemd/system/node_exporter.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Mon 2021-11-08 19:42:15 UTC; 14h ago
Main PID: 14098 (code=killed, signal=TERM)
Nov 08 19:04:28 xxx node_exporter[14098]: level=info ts=2021-11-08T19:04:28.554Z caller=node_exporter.go:115 collector=timex
Nov 08 19:04:28 xxx node_exporter[14098]: level=info ts=2021-11-08T19:04:28.554Z caller=node_exporter.go:115 collector=udp_queues
Nov 08 19:04:28 xxx node_exporter[14098]: level=info ts=2021-11-08T19:04:28.554Z caller=node_exporter.go:115 collector=uname
Nov 08 19:04:28 xxx node_exporter[14098]: level=info ts=2021-11-08T19:04:28.554Z caller=node_exporter.go:115 collector=vmstat
Nov 08 19:04:28 xxx node_exporter[14098]: level=info ts=2021-11-08T19:04:28.554Z caller=node_exporter.go:115 collector=xfs
Nov 08 19:04:28 xxx node_exporter[14098]: level=info ts=2021-11-08T19:04:28.554Z caller=node_exporter.go:115 collector=zfs
Nov 08 19:04:28 xxx node_exporter[14098]: level=info ts=2021-11-08T19:04:28.554Z caller=node_exporter.go:199 msg="Listening on" address=:9100
Nov 08 19:04:28 xxx node_exporter[14098]: level=info ts=2021-11-08T19:04:28.563Z caller=tls_config.go:191 msg="TLS is disabled." http2=false
Nov 08 19:42:15 xxx systemd[1]: Stopping Node Exporter...
Nov 08 19:42:15 xxx systemd[1]: Stopped Node Exporter.
I expect the node_exporter service to keep on running, and to automatically restart upon failure or system reboot.
What did you see instead?The node_exporter is stopping in systemd for no apparent reason. I would like to know how it can be run as a service in a consistent way without interruption.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/88690113-44bd-4337-a56d-b2a771e78434n%40googlegroups.com.