divinity666 / ruby-grafana-reporter

Reporting Service for Grafana
MIT License
73 stars 5 forks source link

Use username and password for authentication #57

Open kyouma24 opened 5 days ago

kyouma24 commented 5 days ago

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: https://github.com/divinity666/ruby-grafana-reporter/issues/54)