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