I just noticed that in the Prometheus container th...
# netmaker
r
I just noticed that in the Prometheus container the license key is not currently replaced in the Prometheus container by the init script and therefore scraping of the metrics fails in 0.16.1
b
which init script are you talking about?
you need to add your license key as env
LICENSE_KEY: "YOUR_LICENSE_KEY"
for your
grafana,promethues and netmaker-exporter containers
this configuration is mandatory to keep the connections secure between them
r
The entrypoint script in the Prometheus container does a sed on the Prometheus config before starting Prometheus to replace the license key for basic auth. And this sed replace is missing.
b
it's not missing, the placeholder is present in the
prometheus.yml
can you remove your older images and try again, maybe your container is using the old image
r
Okay itโ€™s a different problem
The configure.sh that does the sed, is located in /promtheus where the prometheus data is stored this is also the volume mounted path. So updating the container will not update the script
I had to delete my prometheus volume to get the new script and with it all previous metrics
Therefore you should probably move the script to a different place inside of the container ๐Ÿ˜‰