grafana-checkmk-datasource
grafana-checkmk-datasource copied to clipboard
Is it possible to remove the required "User management" permission when doing the data source test
In my CheckMK setup, I use a read only user to connect Grafana to the CheckMK to gather the data. The test will fail unless you give it the User management permission, but all my reports work fine without the permission, so I assume it's only required for the test to function.
Would be possible to remove this requirement for the test to pass?
we currently need the "User managment" permission to check if the user is an automation user: https://github.com/Checkmk/grafana-checkmk-datasource/blob/77a7675f5999a8ce4f693723229df7c27ecddb65/src/backend/rest.ts#L213-L218 as this is a requirement for the autocompleter endpoints. but we should check if this is still necessary, or invest time in a better workaround.
checking if the current user is an automation user is the last check in the test connection code, so you don't miss anything by ignoring the error, but we should still look into that!
When I do to edit any current graphs, it does auto complete the metrics... or are you speaking of a different autocompleter?
Granted not sure my user is an automation user or a basic user, that I would need to check.