scross01 / prometheus-klipper-exporter

Prometheus Exporter for Klipper
MIT License
45 stars 9 forks source link

API Key generation #30

Open Nikongen opened 2 weeks ago

Nikongen commented 2 weeks ago

Hi,

described method for generating the api key did not work for me. First I got a package not found error (lmdb) After installing this to the moonraker env I get a file not found error. Note I installed klipper and moonraker with kiauh on Ubuntu Server . What worked for me was:

curl localhost:7125/access/api_key

scross01 commented 2 weeks ago

Thanks for reporting this. The guidelines are based on the Moonraker docs Retrieving the API Key, but it looks like the script may have stopped working for newer installations, the fetch-apikey.sh script uses the lmdb package, but there's a note further down in the docs that mentions LMDB Database is deprecated.

Using the curl approach seems to be more reliable.

Nikongen commented 2 weeks ago

Yes, took me a while to find the curl method...

Btw, thanks for the nice project. I am using this inside a podman Kube/pod and it works like a charm. 🤩👌

If interested I can also share my yaml for the kube.