[stork-users] prometheus exporter not running as a service

Tan Mientras tanimientras at gmail.com
Wed Feb 1 10:08:00 UTC 2023


Hi

We are trying to setup our dhcp servers to export KEA and BIND to
prometheus using latest stork agent version (1.9.0 atm)

Running stork-agent in dhcp server using command line result in the
following trace:
INFO[2023-02-01 10:57:50]             main.go:43    Starting Stork Agent,
version 1.9.0, build date 2023-01-31 11:12
INFO[2023-02-01 10:57:50]         caclient.go:72    the Basic Auth
credentials file (/etc/stork/agent-credentials.json) is missing - HTTP
authentication is not used
INFO[2023-02-01 10:57:50]         caclient.go:72    the Basic Auth
credentials file (/etc/stork/agent-credentials.json) is missing - HTTP
authentication is not used
INFO[2023-02-01 10:57:50]         caclient.go:72    the Basic Auth
credentials file (/etc/stork/agent-credentials.json) is missing - HTTP
authentication is not used
*INFO[2023-02-01 10:57:50]  promkeaexporter.go:628   Prometheus Kea
Exporter listening on 0.0.0.0:9547 <http://0.0.0.0:9547>, stats pulling
interval: 10 seconds *
INFO[2023-02-01 10:57:50]          monitor.go:99    Started app monitor

INFO[2023-02-01 10:57:50]          monitor.go:172   New or updated apps
detected:
INFO[2023-02-01 10:57:50]          monitor.go:180      kea: control:
http://192.168.120.253:8000/
WARN[2023-02-01 10:57:50]              kea.go:67    Skipped refreshing
viewable log files because config-get returned unsuccessful result
WARN[2023-02-01 10:57:50]              kea.go:67    Skipped refreshing
viewable log files because config-get returned unsuccessful result
*INFO[2023-02-01 10:57:50]prombind9exporter.go:826   Prometheus BIND 9
Exporter listening on 0.0.0.0:9119 <http://0.0.0.0:9119>, stats pulling
interval: 10 seconds *
INFO[2023-02-01 10:57:50]            agent.go:437   Started serving Stork
Agent                   address="0.0.0.0:8080

Hence, I can telnet 9119 or 9547 ports from another machine and see its
properly working.
*However, running as a service, the log doesnt show anything about
prometheus exporter:*

Starting Stork Agent, version 1.9.0, build date 2023-01-31 11:12" file="
          main.go:43
Loaded existing agent key and generated CSR" file="         register.go:179
============================================================================="
file="         register.go:449
AGENT TOKEN:
B631F9875574B259FC287CB467A6CC6A76DD271807DDB2782ADB7252948B440E" file="
      register.go:450
============================================================================="
file="         register.go:451
Authorize the machine in the Stork web UI" file="         register.go:454
Try to register agent in Stork Server" file="         register.go:471
the Basic Auth credentials file (/etc/stork/agent-credentials.json) is
missing - HTTP authentication is not used" file="         caclient.go:72
the Basic Auth credentials file (/etc/stork/agent-credentials.json) is
missing - HTTP authentication is not used" file="         caclient.go:72 ]
Started serving Stork Agent" file="            agent.go:437 address="
192.168.120.253:8080"
Started app monitor" file="          monitor.go:99
New or updated apps detected:" file="          monitor.go:172
   kea: control: http://192.168.120.253:8000/" file="
 monitor.go:180
Feb  1 11:01:29 vmdhcp02 kea-dhcp4[2075256]: INFO  COMMAND_RECEIVED
Received command 'config-get'
Skipped refreshing viewable log files because config-get returned
unsuccessful result" file="

And I cant telnet neither ports 9119 or 9547

What should we do to enable service exporting KEA/BIND data? Shall we edit
systemd service unit?
Are we edge-testing a feature not yet implemented?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/stork-users/attachments/20230201/bec35571/attachment.htm>


More information about the Stork-users mailing list