<html><head></head><body><div class="ydpea9077ccyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
<div dir="ltr" data-setdir="false">Hello Slawek,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thank you for your answer.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Wouldn't it be possible that the stork agent and stork server would read the configuration files ?</div><div dir="ltr" data-setdir="false">For example, named has the -c switch, so we can indicate where the named.conf file is.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Regards<br></div><div dir="ltr" data-setdir="false"><br></div><div><br></div>
</div><div id="yahoo_quoted_0427968982" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
Le mardi 2 août 2022 à 11:58:28 UTC+2, Slawek Figiel <slawek@isc.org> a écrit :
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv6461248768"><div>
<p>Hello Mik!</p>
<p>The "agent.env" and "server.env" files are used only by the
SystemD service. Stork Agent/Server itself doesn't read them. You
must load them manually if you don't run the Stork as a SystemD
service. You can load the environment variables from the file to
the current shell using the dot + path syntax: ". /path/to/file".<br clear="none">
<br clear="none">
For example:<br clear="none">
<br clear="none">
```<br clear="none">
. /etc/stork/agent.env<br clear="none">
./backend/cmd/stork-agent/stork-agent<br clear="none">
```</p>
<p><br clear="none">
We noticed that the usage of the environment files is confusing
for our users. We'll work to improve this situation in #830.<br clear="none">
</p>
<p>Best regards<br clear="none">
Slawek<br clear="none">
</p>
<p>The "agent.env" and "server.env" files are used only by the
SystemD service.<br clear="none">
</p>
<div id="yiv6461248768yqt74375" class="yiv6461248768yqt4446989876"><div class="yiv6461248768moz-cite-prefix">On 01/08/2022 20:14, Mik J wrote:<br clear="none">
</div>
<blockquote type="cite">
</blockquote></div></div><div id="yiv6461248768yqt19658" class="yiv6461248768yqt4446989876"><div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;" class="yiv6461248768yahoo-style-wrap">
<div dir="ltr">OS: Openbsd 7.1</div>
<div dir="ltr"><br clear="none">
</div>
<div dir="ltr">Hello everyone,</div>
<div dir="ltr"><br clear="none">
</div>
<div dir="ltr">When I start the stork agent
I can see messages about <span>Prometheus</span></div>
<div dir="ltr"><span><br clear="none">
</span></div>
<div>
<div>INFO[2022-08-01 20:09:20]prombind9exporter.go:822
Prometheus BIND 9 Exporter listening on 0.0.0.0:9119, stats
pulling interval: 10 seconds<br clear="none">
</div>
<div>INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: cumulative-assigned-addresses<br clear="none">
</div>
INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: reclaimed-declined-addresses<br clear="none">
INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: declined-addresses<br clear="none">
INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: cumulative-assigned-pds<br clear="none">
INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: reclaimed-leases<br clear="none">
INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: reclaimed-declined-addresses<br clear="none">
INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: declined-addresses<br clear="none">
INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: cumulative-assigned-nas<br clear="none">
<br clear="none">
</div>
<div dir="ltr">
<div dir="ltr">When I start the stork
agent like this I don't see these messages</div>
<div dir="ltr"><span>#
./backend/cmd/stork-agent/stork-agent --listen-stork-only</span></div>
<div dir="ltr"><br clear="none">
</div>
<div dir="ltr">The stork agent is supposed
to look at <span>/etc/stork/agent.env but regardless I use</span></div>
<div dir="ltr"><span><span>STORK_AGENT_LISTEN_STORK_ONLY=true</span></span></div>
<div dir="ltr"><span><span>the </span><span><span>Prometheus</span></span>
message is seen in the output when I execute</span></div>
<div dir="ltr"><span><span><span>#
./backend/cmd/stork-agent/stork-agent</span></span><br clear="none">
</span></div>
<div dir="ltr"><span><br clear="none">
</span></div>
<div dir="ltr"><span>What is the correct
configuration in <span><span>/etc/stork/agent.env</span></span>
to avoir exporting to Prometheus.</span></div>
<div dir="ltr"><span><br clear="none">
</span></div>
<div dir="ltr"><span>Thank you<br clear="none">
</span></div>
<div dir="ltr"><br clear="none">
</div>
</div>
</div>
<br clear="none">
<fieldset class="yiv6461248768moz-mime-attachment-header"></fieldset>
</div></div></div><div class="yqt4446989876" id="yqt44839">-- <br clear="none">Stork-users mailing list<br clear="none"><a shape="rect" ymailto="mailto:Stork-users@lists.isc.org" href="mailto:Stork-users@lists.isc.org">Stork-users@lists.isc.org</a><br clear="none"><a shape="rect" href="https://lists.isc.org/mailman/listinfo/stork-users" target="_blank">https://lists.isc.org/mailman/listinfo/stork-users</a><br clear="none"></div></div>
</div>
</div></body></html>