incubator-devlake icon indicating copy to clipboard operation
incubator-devlake copied to clipboard

[Bug][Grafana] Grafana Create new Organization Failed

Open diwangcanada opened this issue 1 year ago • 1 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

What happened

Try to use Grafana organizations to manage different projects for different teams. When create a new organization in Grafana, url keeps redirect from https:///grafana/dashboards to https://localhost/?orgId=3 Have to manually update url to https:///grafana/?orgId=3 in order to switch to new organization. Then, there is no dashboard available in new organizations. Does Grafana organizations work with DevLake? Or do we have to use the default "Main Org" only?

What do you expect to happen

With new Gragana organizations created, url can automatically update when switch to new organization. Dashboards are available in new organizations.

How to reproduce

In Grafana, Administration --> General-->Organizations, create new organization. Then switch to new organization by click the drop list from top left of the page

Anything else

No response

Version

1.0.1-beta9

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

diwangcanada avatar Oct 16 '24 13:10 diwangcanada

The issue you're experiencing with Grafana organizations and URL redirection when using DevLake is not specifically documented in the available resources. However, the DevLake documentation does provide guidance on setting up dashboards for new Grafana organizations, which might help you ensure that dashboards are available in new organizations. This involves creating and saving a dashboard, accessing its settings, and copying the JSON model code into a new .json file in the /grafana/dashboards directory [1][2][3].

Unfortunately, there is no specific information available about the URL redirection issue or any known limitations with using Grafana organizations in conjunction with DevLake. You might need to manually adjust the URLs as a temporary workaround or explore Grafana's settings to see if there are any configurations that could help with this issue.

To continue talking to Dosu, mention @dosu.

dosubot[bot] avatar Oct 16 '24 13:10 dosubot[bot]

Looks like a Gafana problem to me. Maybe take a look at the Grafana documentation?

klesh avatar Oct 21 '24 09:10 klesh

Looks like a Gafana problem to me. Maybe take a look at the Grafana documentation?

I think this is more like integration with DevLake, as Grafana doesn't have it's own url, but share the same url as DevLake but use /grafana/*** at the end.

diwangcanada avatar Oct 21 '24 13:10 diwangcanada

Got this work with adding below environment variables for Grafana: GF_SERVER_DOMAIN GF_SERVER_ROOT_URL It would be nice if DevLake also document it.

diwangcanada avatar Oct 24 '24 15:10 diwangcanada