-
Notifications
You must be signed in to change notification settings - Fork 395
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
[Bug] get version does not work with Azure Managed Grafana #1569
Comments
@weisdd will check how authentication for this endpoint is implemented and we'll decide what to do from there |
@theSuess The health endpoint can be accessed using the same API key as for managing grafana instance: ![]() So, I think the fix would be to simply use the same client as in various controllers. |
this was also me thought, after debugging with curl, but I did not want to mess up your code |
Getting a similar issue with AWS Managed Grafana on Version 5.9.2:
|
@DanielAtanasovski I don't have an AWS environment at hand, so could you send an authenticated request (using the same credentials that you supply to the operator) to that endpoint and post the result here? |
Is there a possibility to avoid that api endpoint by specifying the grafana version in configs? |
It might be worse with AWS as the Related to this issue: |
@DanielAtanasovski Amazon Managed grafana supports this API endpoint: https://grafana.com/docs/grafana/latest/developers/http_api/other/#frontend-settings-api. Can this be used alternatively to get the version? |
This changes the version detection logic to use the frontend settings endpoint as it is more reliable, especially on cloud provider offerings. Fixes #1569
Describe the bug
The Grafana Operator tries to get the version of the external Grafana instance from its /api/health endpoint, unfortunatly this does not work wit Azure Managed Grafana, as in this case, all endpoints, including the /api/health require authentication.
Secondly the Grafana Operator, seams not to check the HTTP status code (in my case 403) , but only if the request is successful.
Log:
Version
5.9.2
To Reproduce
configure Azure Managed Grafana as external Grafana
Expected behavior
A clear and concise description of what you expected to happen.
Suspect component/Location where the bug might be occurring
grafana-operator/controllers/grafana_controller.go
Line 157 in f64b541
Runtime (please complete the following information):
The text was updated successfully, but these errors were encountered: