STORK_SERVER_URL - unknown environment variable in doc
Documentation is mentioning STORK_SERVER_URL.
so it would be good to have it also in the /etc/stork/agent.env
file as other variables
Update: It revealed that STORK_SERVER_URL
is wrongly stated in the documentation and was the reason why agent could not be registered. To solve the issue please change STORK_SERVER_URL
to STORK_AGENT_SERVER_URL
.
$ cat /etc/stork/agent.env
# address to bind ie. for listening
# STORK_AGENT_ADDRESS=
# STORK_AGENT_PORT=
# enable Stork functionality only, i.e. disable Prometheus exporters
# STORK_AGENT_LISTEN_STORK_ONLY=true
# enable Prometheus exporters only, i.e. disable Stork functionality
# STORK_AGENT_LISTEN_PROMETHEUS_ONLY=true
# settings for exporting stats to Prometheus
# STORK_AGENT_PROMETHEUS_KEA_EXPORTER_ADDRESS=
# STORK_AGENT_PROMETHEUS_KEA_EXPORTER_PORT=
# STORK_AGENT_PROMETHEUS_KEA_EXPORTER_INTERVAL=
# STORK_AGENT_PROMETHEUS_BIND9_EXPORTER_ADDRESS=
# STORK_AGENT_PROMETHEUS_BIND9_EXPORTER_PORT=
# STORK_AGENT_PROMETHEUS_BIND9_EXPORTER_INTERVAL=
# this is used when agent is automatically registered in Stork server
# STORK_AGENT_SERVER_URL=
# STORK_AGENT_ADDRESS=
# skip TLS certificate verification when the Stork Agent connects
# to Kea over TLS and Kea uses self-signed certificates
# STORK_AGENT_SKIP_TLS_CERT_VERIFICATION=true
Note: working/tested agent configuration
# cat agent.env
# address to bind ie. for listening
# STORK_AGENT_ADDRESS=
# STORK_AGENT_PORT=
STORK_AGENT_ADDRESS="10.10.9.248"
# enable Stork functionality only, i.e. disable Prometheus exporters
# STORK_AGENT_LISTEN_STORK_ONLY=true
# enable Prometheus exporters only, i.e. disable Stork functionality
# STORK_AGENT_LISTEN_PROMETHEUS_ONLY=true
# settings for exporting stats to Prometheus
# STORK_AGENT_PROMETHEUS_KEA_EXPORTER_ADDRESS=
# STORK_AGENT_PROMETHEUS_KEA_EXPORTER_PORT=
# STORK_AGENT_PROMETHEUS_KEA_EXPORTER_INTERVAL=
# STORK_AGENT_PROMETHEUS_BIND9_EXPORTER_ADDRESS=
# STORK_AGENT_PROMETHEUS_BIND9_EXPORTER_PORT=
# STORK_AGENT_PROMETHEUS_BIND9_EXPORTER_INTERVAL=
# this is used when agent is automatically registered in Stork server
# STORK_AGENT_SERVER_URL=
# STORK_AGENT_ADDRESS=
STORK_AGENT_SERVER_URL="http://storktest.aws.isc.org:8080"
# skip TLS certificate verification when the Stork Agent connects
# to Kea over TLS and Kea uses self-signed certificates
# STORK_AGENT_SKIP_TLS_CERT_VERIFICATION=true
Agent is not registered
Agent is not registered even when following the guide. The reason was wrongly stated variable name STORK_SERVER_URL
which should be STORK_AGENT_SERVER_URL
.
Edited by Slawek Figiel