|
|
|
@ -129,14 +129,9 @@ public class GrafanaRequestHandlerUtil {
|
|
|
|
|
log.error(errMsg);
|
|
|
|
|
throw new RefererNotValid(errMsg);
|
|
|
|
|
}
|
|
|
|
|
GrafanaConfiguration configuration;
|
|
|
|
|
try {
|
|
|
|
|
configuration = GrafanaConfigurationManager.getInstance().getGrafanaConfiguration();
|
|
|
|
|
} catch (GrafanaManagementException e) {
|
|
|
|
|
String msg = "Error occurred while retrieving Grafana configuration";
|
|
|
|
|
log.error(msg, e);
|
|
|
|
|
throw e;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
GrafanaConfiguration configuration = GrafanaConfigurationManager.getInstance().getGrafanaConfiguration();
|
|
|
|
|
|
|
|
|
|
boolean dashboardIntegrationConfig = configuration.getValidationConfig().getDashboardIntegration();
|
|
|
|
|
GrafanaPanelIdentifier panelIdentifier = GrafanaUtil.getPanelIdentifierFromReferer(referer);
|
|
|
|
|
if (!dashboardIntegrationConfig) {
|
|
|
|
|