<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello Tan!</p>
<p>The Stork agent running as a SystemD service reads the
configuration from the `/etc/stork/agent.env` file. <br>
Please, examine if the `STORK_AGENT_LISTEN_STORK_ONLY` variable IS
NOT set to "true". This option is used to suppress the Prometheus
exporters.<br>
</p>
<p>Best regards<br>
Slawek<br>
</p>
<div class="moz-cite-prefix">On 01/02/2023 11:08, Tan Mientras
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+TYS85-AthA8AEHpOhDCtZq5D4jiG4+myRUcea7vzSOP=-=7Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi
<div><br>
</div>
<div>We are trying to setup our dhcp servers to export KEA and
BIND to prometheus using latest stork agent version (1.9.0
atm)</div>
<div><br>
</div>
<div>Running stork-agent in dhcp server using command line
result in the following trace:</div>
<div>INFO[2023-02-01 10:57:50] main.go:43
Starting Stork Agent, version 1.9.0, build date 2023-01-31
11:12 <br>
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 <br>
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 <br>
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 <br>
<b>INFO[2023-02-01 10:57:50] promkeaexporter.go:628
Prometheus Kea Exporter listening on <a
href="http://0.0.0.0:9547" moz-do-not-send="true">0.0.0.0:9547</a>,
stats pulling interval: 10 seconds </b><br>
INFO[2023-02-01 10:57:50] monitor.go:99 Started
app monitor <br>
INFO[2023-02-01 10:57:50] monitor.go:172 New or
updated apps detected: <br>
INFO[2023-02-01 10:57:50] monitor.go:180 kea:
control: <a href="http://192.168.120.253:8000/"
moz-do-not-send="true" class="moz-txt-link-freetext">http://192.168.120.253:8000/</a>
<br>
WARN[2023-02-01 10:57:50] kea.go:67 Skipped
refreshing viewable log files because config-get returned
unsuccessful result <br>
WARN[2023-02-01 10:57:50] kea.go:67 Skipped
refreshing viewable log files because config-get returned
unsuccessful result <br>
<b>INFO[2023-02-01 10:57:50]prombind9exporter.go:826
Prometheus BIND 9 Exporter listening on <a
href="http://0.0.0.0:9119" moz-do-not-send="true">0.0.0.0:9119</a>,
stats pulling interval: 10 seconds </b><br>
INFO[2023-02-01 10:57:50] agent.go:437 Started
serving Stork Agent address="<a
href="http://0.0.0.0:8080" moz-do-not-send="true">0.0.0.0:8080</a><br>
</div>
<div><br>
</div>
<div>Hence, I can telnet 9119 or 9547 ports from another machine
and see its properly working.</div>
<div><b>However, running as a service, the log doesnt show
anything about prometheus exporter:</b></div>
<div><br>
</div>
<div>Starting Stork Agent, version 1.9.0, build date 2023-01-31
11:12" file=" main.go:43 <br>
Loaded existing agent key and generated CSR" file="
register.go:179<br>
============================================================================="
file=" register.go:449<br>
AGENT TOKEN:
B631F9875574B259FC287CB467A6CC6A76DD271807DDB2782ADB7252948B440E"
file=" register.go:450<br>
============================================================================="
file=" register.go:451<br>
Authorize the machine in the Stork web UI" file="
register.go:454<br>
Try to register agent in Stork Server" file="
register.go:471<br>
the Basic Auth credentials file
(/etc/stork/agent-credentials.json) is missing - HTTP
authentication is not used" file=" caclient.go:72 <br>
the Basic Auth credentials file
(/etc/stork/agent-credentials.json) is missing - HTTP
authentication is not used" file=" caclient.go:72 ]<br>
Started serving Stork Agent" file=" agent.go:437
address="<a href="http://192.168.120.253:8080"
moz-do-not-send="true">192.168.120.253:8080</a>"<br>
Started app monitor" file=" monitor.go:99 <br>
New or updated apps detected:" file=" monitor.go:172<br>
kea: control: <a href="http://192.168.120.253:8000/"
moz-do-not-send="true" class="moz-txt-link-freetext">http://192.168.120.253:8000/</a>"
file=" monitor.go:180<br>
Feb 1 11:01:29 vmdhcp02 kea-dhcp4[2075256]: INFO
COMMAND_RECEIVED Received command 'config-get'<br>
Skipped refreshing viewable log files because config-get
returned unsuccessful result" file="<br>
</div>
<div><br>
</div>
<div>And I cant telnet neither ports 9119 or 9547</div>
<div><br>
</div>
<div>What should we do to enable service exporting KEA/BIND
data? Shall we edit systemd service unit? </div>
<div>Are we edge-testing a feature not yet implemented?</div>
<div><br>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
</blockquote>
</body>
</html>