Page MenuHomeVyOS Platform

Service monitoring prometheus cannot start
Closed, ResolvedPublicBUG

Description

Service monitoring prometheus cannot start due to a lack of user node_exporter
https://github.com/vyos/vyos-1x/blob/b3ebf8f81afc0c4ceddd11c28421971b7b44fe69/debian/vyos-1x.postinst#L24-L27

set interfaces dummy dum0 address '192.0.2.1/32'
set service monitoring prometheus node-exporter collectors textfile
set service monitoring prometheus node-exporter listen-address '192.0.2.1'

check:

vyos@r16# cat /etc/passwd | grep node
[edit]
vyos@r16# run show version all | match node
ii  node-exporter                        1.9.1                            amd64        Prometheus exporter for machine metrics
[edit]
vyos@r16#

Log:

Jun 06 12:10:58 r16 systemd[1]: Started Node Exporter.
Jun 06 12:10:58 r16 systemd[1]: node_exporter.service: Main process exited, code=exited, status=217/USER
Jun 06 12:10:58 r16 systemd[1]: node_exporter.service: Failed with result 'exit-code'.
Jun 06 12:10:58 r16 vyos-configd[797]: Sending reply: SUCCESS with output
Jun 06 12:10:58 r16 vyos-configd[797]: scripts_called: ['service_monitoring_prometheus']

Details

Version
VyOS 1.5-stream-202506051448
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav changed the task status from Open to In progress.
Viacheslav claimed this task.
Viacheslav triaged this task as Normal priority.