[stork-users] Stork Agent: Error messages when not using Prometheus

Slawek Figiel slawek at isc.org
Tue Aug 2 09:58:12 UTC 2022


Hello Mik!

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".

For example:

```
. /etc/stork/agent.env
./backend/cmd/stork-agent/stork-agent
```


We noticed that the usage of the environment files is confusing for our 
users. We'll work to improve this situation in #830.

Best regards
Slawek

The "agent.env" and "server.env" files are used only by the SystemD service.

On 01/08/2022 20:14, Mik J wrote:
> OS: Openbsd 7.1
>
> Hello everyone,
>
> When I start the stork agent I can see messages about Prometheus
>
> 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
> INFO[2022-08-01 20:09:30]  promkeaexporter.go:683 Encountered 
> unsupported stat: cumulative-assigned-addresses
> INFO[2022-08-01 20:09:30]  promkeaexporter.go:683 Encountered 
> unsupported stat: reclaimed-declined-addresses
> INFO[2022-08-01 20:09:30]  promkeaexporter.go:683 Encountered 
> unsupported stat: declined-addresses
> INFO[2022-08-01 20:09:30]  promkeaexporter.go:683 Encountered 
> unsupported stat: cumulative-assigned-pds
> INFO[2022-08-01 20:09:30]  promkeaexporter.go:683 Encountered 
> unsupported stat: reclaimed-leases
> INFO[2022-08-01 20:09:30]  promkeaexporter.go:683 Encountered 
> unsupported stat: reclaimed-declined-addresses
> INFO[2022-08-01 20:09:30]  promkeaexporter.go:683 Encountered 
> unsupported stat: declined-addresses
> INFO[2022-08-01 20:09:30]  promkeaexporter.go:683 Encountered 
> unsupported stat: cumulative-assigned-nas
>
> When I start the stork agent like this I don't see these messages
> # ./backend/cmd/stork-agent/stork-agent --listen-stork-only
>
> The stork agent is supposed to look at /etc/stork/agent.env but 
> regardless I use
> STORK_AGENT_LISTEN_STORK_ONLY=true
> the Prometheus message is seen in the output when I execute
> # ./backend/cmd/stork-agent/stork-agent
>
> What is the correct configuration in /etc/stork/agent.env to avoir 
> exporting to Prometheus.
>
> Thank you
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/stork-users/attachments/20220802/6979c4fc/attachment.htm>


More information about the Stork-users mailing list