Page MenuHomeVyOS Platform

Service monitoring prometheus stops unconfigured services
Closed, ResolvedPublicBUG

Description

Service monitoring prometheus stops unconfigured services.
To reproduce:

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'
commit

Logs (unexpected frr and blackbox):

Jun 06 11:49:05 r14 vyos-configd[788]: Received message: {"type": "node", "last": true, "data": "/usr/libexec/vyos/conf_mode/service_monitoring_prometheus.py"}
Jun 06 11:49:05 r14 systemd[1]: Reloading.
Jun 06 11:49:05 r14 systemctl[5629]: Failed to stop frr_exporter.service: Unit frr_exporter.service not loaded.
Jun 06 11:49:05 r14 systemctl[5630]: Failed to stop blackbox_exporter.service: Unit blackbox_exporter.service not loaded.
Jun 06 11:49:05 r14 systemd[1]: Started Node Exporter.

https://github.com/vyos/vyos-1x/blob/b3ebf8f81afc0c4ceddd11c28421971b7b44fe69/src/conf_mode/service_monitoring_prometheus.py#L175-L180

Details

Version
VyOS 2025.06.06-0019-rolling
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav triaged this task as Normal priority.
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.