Mikesch-mp / icingaweb2-module-grafana

Grafana module for Icinga Web 2 (supports InfluxDB & Graphite)
https://icinga.com/community/
GNU General Public License v2.0
241 stars 95 forks source link

Can't add a grafana graph to the dashboard. #309

Closed duckq closed 1 year ago

duckq commented 1 year ago

Hello. I have the problem with adding graph to the dashboard as described below (Current Behavior).

Current Behavior

Can't add a grafana graph to the dashboard. The operation fails with an error:

Required parameter 'host' missing
#0 /usr/share/icingaweb2/modules/grafana/application/controllers/IcingadbdashboardController.php(37): Icinga\Web\UrlParams->getRequired()
#1 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Grafana\Controllers\IcingadbdashboardController->indexAction()
#2 /usr/share/icingaweb2/library/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch()
#3 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch()
#4 /usr/share/icingaweb2/library/Icinga/Application/Web.php(290): Zend_Controller_Front->dispatch()
#5 /usr/share/icingaweb2/library/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch()
#6 /usr/share/icingaweb2/public/index.php(4): require_once(String)
#7 {main}

Expected Behavior

image

Possible Solution

I achieved the expected behavior by manually modifying the url as below.

image

Steps to Reproduce (for bugs)

1.Choose the timeframe for the graph (e.g. 8 hours).

image

2.Add graph to the dashboard.

image image
  1. Error: "Required parameter 'host' missing" image

My Environment

image

Mikesch-mp commented 1 year ago

Hosts are working , services are broken. will fix it with next release. Thanks for reporting