Hi, When creating a Grafana Provider is possible t...
# getting-started
f
Hi, When creating a Grafana Provider is possible to set the API Key using env vars (GRAFANA_AUTH) and the URL in the code (url: "test")?
f
Thanks for the response. So before I was setting my auth and url via:
Copy code
export GRAFANA_AUTH=VALUE
export GRAFANA_URL=VALUE
Once I removed the GRAFANA_URL env var from my machine and instead hardcoded into code it no longer worked. const provider = new grafana.Provider("provider" , { url: "test", }); Im trying to accomplish this with the AUTH outside of my code
b
could you open an issue on the above repo?
f
I wish I could but its a private repo
b
🤔
f
roger that
b
f
So I can get it working when putting auth and url in my code. But when I split it (auth is via env var and url is in my code) the issue occurs.
That open issue doesnt happen in my env
b
a new issue would be awesome
f