Host operating system: output of uname -a

Linux xxx 3.10.0-1160.45.1.el7.x86_64 #1 
<https://github.com/prometheus/node_exporter/pull/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 --version

node_exporter, version 1.2.2 (branch: HEAD, revision: 2664536 
<https://github.com/prometheus/node_exporter/commit/26645363b486e12be40af7ce4fc91e731a33104e>
)
build user: root@b9cb4aa2eb17
build date: 20210806-13:44:18
go version: go1.16.7
platform: linux/amd64
node_exporter command line flags

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.
What did you expect to see?

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/2dc216a4-e493-4930-9fee-2c2af8b5fd9en%40googlegroups.com.

Reply via email to