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

Mik J mikydevel at yahoo.fr
Tue Aug 2 20:51:29 UTC 2022


 Hello Slawek,
Thank you for your answer.
Wouldn't it be possible that the stork agent and stork server would read the configuration files ?For example, named has the -c switch, so we can indicate where the named.conf file is.
Regards


    Le mardi 2 août 2022 à 11:58:28 UTC+2, Slawek Figiel <slawek at isc.org> a écrit :  
 
  
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
  
    
  -- 
Stork-users mailing list
Stork-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/stork-users
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/stork-users/attachments/20220802/ba941a53/attachment-0001.htm>


More information about the Stork-users mailing list