Skip to content

Commit

Permalink
Fix for missing dashboarduid in iframe mode. fixes #266
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikesch-mp committed Apr 30, 2021
1 parent 17188dc commit 2cae443
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions library/Grafana/ProvidedHook/Grapher.php
Expand Up @@ -178,12 +178,7 @@ private function getGraphConf($serviceName, $serviceCommand = null)
}

$this->dashboard = $this->getGraphConfigOption($serviceName, 'dashboard', $this->defaultDashboard);
if ($this->grafanaVersion == "1") {
$this->dashboarduid = $this->getGraphConfigOption($serviceName, 'dashboarduid', $this->defaultdashboarduid);
} else {
$this->dashboardstore = $this->getGraphConfigOption($serviceName, 'dashboardstore',
$this->defaultDashboardStore);
}
$this->dashboarduid = $this->getGraphConfigOption($serviceName, 'dashboarduid', $this->defaultdashboarduid);
$this->panelId = $this->getGraphConfigOption($serviceName, 'panelId', $this->defaultDashboardPanelId);
$this->orgId = $this->getGraphConfigOption($serviceName, 'orgId', $this->defaultOrgId);
$this->customVars = $this->getGraphConfigOption($serviceName, 'customVars', '');
Expand Down
2 changes: 1 addition & 1 deletion module.info
@@ -1,5 +1,5 @@
Name: Grafana
Version: 1.4.0
Version: 1.4.1
Depends: monitoring
Description: Grafana - A perfdata visualisation module
Shows Grafana graphs for captured metrics.
Expand Down

0 comments on commit 2cae443

Please sign in to comment.