log.level setting is debug and --log.level flag is ignored
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
prometheus-blackbox-exporter (Debian) |
Fix Released
|
Unknown
|
|||
prometheus-blackbox-exporter (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The blackbox_exporter from the ubuntu jammy repository always logs with level 'debug' and ignores the flag to change the logging level.
# lsb_release -rd
Description: Ubuntu 22.04 LTS
Release: 22.04
# apt-cache policy prometheus-
prometheus-
Installed: 0.19.0-1
Candidate: 0.19.0-1
Version table:
*** 0.19.0-1 500
500 http://
100 /var/lib/
Expected behavior:
Starting the exporter via
# /usr/bin/
and connecting interacting with it, e.g.
# curl -s 'localhost:
Should only give output of level 'error' (nothing for me in this case). The original exporter
shows this behavior.
What happens instead:
Output of all levels, including 'debug' is returned on startup and when the exporter is queried
# ts=2022-
# ...
# ts=2022-
# ...
# ts=2022-
Changed in prometheus-blackbox-exporter (Debian): | |
status: | Unknown → Fix Released |
See also: https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 1010054