-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GRAFANA_TOKEN env variable is not passed correctly #16
Comments
Dear @julialau23. Thanks a stack for the report. May we ask if you would have the capacities to submit a patch? |
Hi Andreas,
Sure I can do that. Can I get write access to the repo?
…On Wed, Jul 3, 2024 at 1:17 PM Andreas Motl ***@***.***> wrote:
Dear @julialau23 <https://github.com/julialau23>. Thanks a stack for the
report. May we ask if you would have the capacities to submit a patch?
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APHZBJWBEYZQLWD3G3LLIMDZKRL7HAVCNFSM6AAAAABJJTPFUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBXGE3DSNZSHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @julialau23. Thanks a stack. You can easily fork the repository, and then submit a pull request, no? |
Hi @julialau23. We just wanted to check if you have been able to come up with a solution for this you could share with the community? |
Hi @amotl, apologies for the delay. Pull request has been opened. |
Your improvements have been released per grafana-import v0.3.0, now on PyPI. |
I think it will be safe to close this issue. Please re-open otherwise. |
When the Grafana class is initialized in grafana.py, there is only a check for the "url" field in the parameters. If the GRAFANA_TOKEN env variable is set, the token is never passed to the GrafanaApi client and therefore results in a GrafanaUnauthorizedError when making requests using grafana_client. A credential field needs to be added to the
from_url
call to populate the GRAFANA_TOKEN env variable.The text was updated successfully, but these errors were encountered: