Skip to content

Commit

Permalink
Disallow grafana plugin on the cse
Browse files Browse the repository at this point in the history
  • Loading branch information
kain88-de committed Nov 16, 2024
1 parent d40dc80 commit 7f56ad7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/backend/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ export default class RestApiBackend implements Backend {
'The data source specified the Checkmk Raw Edition, but a Checkmk commercial edition was detected. Some functionality may not be available. Choose commercial editions in the data source settings to enable all features.'
);
}
if (result.data.edition === 'cse') {
throw new Error(
'The data source specifed is the Checkmk Cloud Edition (hosted). The grafana plugin is currently not supported for that edition.'
)
}
// The REST API would be ok with other users, but the autocompleter are not
if (!(await this.isAutomationUser(this.datasource.getUsername()))) {
throw new Error('This data source must authenticate against Checkmk using an automation user.');
Expand Down

0 comments on commit 7f56ad7

Please sign in to comment.