Page MenuHomeVyOS Platform

All prometheus exporters start regardless of configuration
Closed, ResolvedPublic

Description

The prometheus monitoring configuration logic appears to start all available exporters (node_exporter, frr_exporter, and blackbox_exporter) regardless of whether they are configured.

vyos@vyos# show |commands |grep 'monitoring prometheus'
set service monitoring prometheus node-exporter collectors textfile
set service monitoring prometheus node-exporter listen-address '127.0.0.1'
[edit]

Actual result:

vyos@vyos# sudo ps -ef |grep exporter
node_ex+ 1265448       1  0 16:17 ?        00:00:00 /usr/sbin/node_exporter --collector.textfile.directory=/run/node_exporter/collector --web.listen-address=127.0.0.1:9100
frr      1265454       1  0 16:17 ?        00:00:00 /usr/sbin/frr_exporter --web.listen-address=:9342
node_ex+ 1265462       1  0 16:17 ?        00:00:00 /usr/sbin/blackbox_exporter --web.listen-address=:9115 --config.file=/run/blackbox_exporter/config.yml

All three exporters (node_exporter, frr_exporter, and blackbox_exporter) are started, even if only one or two are explicitly configured.

Details

Version
2025.05.05-0020-rolling
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)