Stork Agent exporters binds on * (all) no matter what is listed in config
As the title says:
Stork agent kea, bind9 exporters always listens on *:Port no matter what is given in the agent.env
configuration file.
agent.env configuration:
# address to bind ie. for listening
STORK_AGENT_ADDRESS=127.0.0.1
STORK_AGENT_PROMETHEUS_KEA_EXPORTER_ADDRESS=127.0.0.1
STORK_AGENT_PROMETHEUS_BIND9_EXPORTER_ADDRESS=127.0.0.1
ss
command output:
LISTEN 0 4096 127.0.0.1:8080 0.0.0.0:* users:(("stork-agent",pid=64694,fd=8))
LISTEN 0 4096 *:9119 *:* users:(("stork-agent",pid=64694,fd=7))
LISTEN 0 4096 *:9547 *:* users:(("stork-agent",pid=64694,fd=46))
Seems like only the STORK_AGENT_ADDRESS
parameter is proceeded as it should.
Stork agent version: 0.18.0
Stork installed from repository, so starting just with systemctl start isc-stork-agent
Stork logs:
Jun 8 16:06:37 ubuntu-server stork-agent[1398]: #033[36mINFO#033[0m[2021-06-08 16:06:37] main.go:23 Starting Stork Agent, version 0.18.0, build date 2021-06-01 09:57
Jun 8 16:06:37 ubuntu-server stork-agent[1398]: #033[36mINFO#033[0m[2021-06-08 16:06:37] promkeaexporter.go:269 Prometheus Kea Exporter listening on :9547, stats pulling interval: 10 seconds
Jun 8 16:06:37 ubuntu-server stork-agent[1398]: #033[36mINFO#033[0m[2021-06-08 16:06:37] monitor.go:95 Started app monitor
Jun 8 16:06:37 ubuntu-server stork-agent[1398]: #033[36mINFO#033[0m[2021-06-08 16:06:37]prombind9exporter.go:822 Prometheus BIND 9 Exporter listening on :9119, stats pulling interval: 10 seconds
Jun 8 16:06:37 ubuntu-server stork-agent[1398]: #033[36mINFO#033[0m[2021-06-08 16:06:37] agent.go:420 started serving Stork Agent #033[36maddress#033[0m="[::]:8080"
Edited by Tooz