<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<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>
<br>
For example:<br>
<br>
```<br>
. /etc/stork/agent.env<br>
./backend/cmd/stork-agent/stork-agent<br>
```</p>
<p><br>
We noticed that the usage of the environment files is confusing
for our users. We'll work to improve this situation in #830.<br>
</p>
<p>Best regards<br>
Slawek<br>
</p>
<p>The "agent.env" and "server.env" files are used only by the
SystemD service.<br>
</p>
<div class="moz-cite-prefix">On 01/08/2022 20:14, Mik J wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1861502135.7037325.1659377695259@mail.yahoo.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div class="yahoo-style-wrap" style="font-family:Helvetica Neue,
Helvetica, Arial, sans-serif;font-size:16px;">
<div dir="ltr" data-setdir="false">OS: Openbsd 7.1</div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false">Hello everyone,</div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false">When I start the stork agent
I can see messages about <span>Prometheus</span></div>
<div dir="ltr" data-setdir="false"><span><br>
</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>
</div>
<div>INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: cumulative-assigned-addresses<br>
</div>
INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: reclaimed-declined-addresses<br>
INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: declined-addresses<br>
INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: cumulative-assigned-pds<br>
INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: reclaimed-leases<br>
INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: reclaimed-declined-addresses<br>
INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: declined-addresses<br>
INFO[2022-08-01 20:09:30] promkeaexporter.go:683
Encountered unsupported stat: cumulative-assigned-nas<br>
<br>
</div>
<div dir="ltr" data-setdir="false">
<div dir="ltr" data-setdir="false">When I start the stork
agent like this I don't see these messages</div>
<div dir="ltr" data-setdir="false"><span>#
./backend/cmd/stork-agent/stork-agent --listen-stork-only</span></div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false">The stork agent is supposed
to look at <span>/etc/stork/agent.env but regardless I use</span></div>
<div dir="ltr" data-setdir="false"><span><span>STORK_AGENT_LISTEN_STORK_ONLY=true</span></span></div>
<div dir="ltr" data-setdir="false"><span><span>the </span><span><span>Prometheus</span></span>
message is seen in the output when I execute</span></div>
<div dir="ltr" data-setdir="false"><span><span><span>#
./backend/cmd/stork-agent/stork-agent</span></span><br>
</span></div>
<div dir="ltr" data-setdir="false"><span><br>
</span></div>
<div dir="ltr" data-setdir="false"><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" data-setdir="false"><span><br>
</span></div>
<div dir="ltr" data-setdir="false"><span>Thank you<br>
</span></div>
<div dir="ltr" data-setdir="false"><br>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
</blockquote>
</body>
</html>