Skip to content
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

Use username and password for authentication #57

Open
kyouma24 opened this issue Oct 1, 2024 · 1 comment
Open

Use username and password for authentication #57

kyouma24 opened this issue Oct 1, 2024 · 1 comment

Comments

@kyouma24
Copy link

kyouma24 commented Oct 1, 2024

Hi divinity666, thank you so much for building this application this has been a great help since we transitioned to open-source for monitoring purpose and this tool really helps us take reports of the dashboards.

In my scenario, I have many clients under my Grafana which are isolated via Organizations where each tenant has their own Organization. When we switch to a different org, other than our main org, we're not able to take the reports from them. And we had noticed that the service account token only lives under an Organization, so when trying to take reports, since the reporter is not able to validate the token, it prints an empty report.

If it's not too much to ask, would you be able to make changes in authentication method to use the username and password so that I can pass in my admin creds and be able to take reports from all of the organizations?

Please do let me know if it's already in my place. I also posted a comment in an Open Issue but by no means I'm a developer and don't know how to configure it on my own. (Ref issue: #54)

@divinity666
Copy link
Owner

Hi @kyouma24, thanks for reaching out.

I am using grafana APIs to make the reporter run. Especially, I am also using these APIs to do authentication. At that level, I only have the option to use the service accounts (if I recall correctly...). This is, why I cannot use username and password. Apart from that, this way sounds a bit hacky to me :-)

Anyway, it is possible to configure as many grafana instances in your config file in the grafana section. You can give each grafana instance a name, an API token and URL. In the report calls, you then would have to refer to the corresponding grafana instance. Depending on your use-case, this could be an option for you.

Does this help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants