icingaweb2-module-grafana icon indicating copy to clipboard operation
icingaweb2-module-grafana copied to clipboard

repeatable panel issues

Open p0ntsNL opened this issue 7 years ago • 16 comments

I seem to have some issues with the repeatable panel.

graphs.ini: [interfaces] dashboard = "icinga2-interfaces" panelId = "1" orgId = "" repeatable = "yes"

So the grafana portal is looking like this: screen shot 2018-07-16 at 10 31 20

But when I look in icinga, it looks like this: screen shot 2018-07-16 at 10 29 38

The variables are as following: screen shot 2018-07-16 at 10 32 14

screen shot 2018-07-16 at 10 32 36

So for some reason, it wants to add more panels than there actually are which is crashing grafana on the server.

p0ntsNL avatar Jul 16 '18 08:07 p0ntsNL

Hi,

you need to set how many metrics there, so the script knows how many are there to repeat. See the metrics per panel option.

Mikesch-mp avatar Jul 16 '18 10:07 Mikesch-mp

Hi,

Thanks for your answer.

I made the metrics per panel 6 but still it does not work.

[interfaces] dashboard = "icinga2-interfaces" panelId = "1" orgId = "" repeatable = "yes" nmetrics = "6"

screen shot 2018-07-16 at 13 11 57

screen shot 2018-07-16 at 13 12 07

screen shot 2018-07-16 at 13 12 27

p0ntsNL avatar Jul 16 '18 11:07 p0ntsNL

Same here, did you configure the panel to repeat in grafana also?

Mikesch-mp avatar Jul 16 '18 12:07 Mikesch-mp

yes in grafana its also in repeat.

screen shot 2018-07-16 at 14 53 27

p0ntsNL avatar Jul 16 '18 12:07 p0ntsNL

Will check my test dashboard later today, there must be something missing in the documentation i wrote

Mikesch-mp avatar Jul 16 '18 14:07 Mikesch-mp

Sure no problem, looking forward to the fix

p0ntsNL avatar Jul 17 '18 08:07 p0ntsNL

Hi Mike,

Have you been able to find this?

p0ntsNL avatar Jul 20 '18 05:07 p0ntsNL

I#am under havy workload at the moment, sorry but it will take some days until i will find time.

Mikesch-mp avatar Jul 20 '18 06:07 Mikesch-mp

understandable, let me know when you have something :)

p0ntsNL avatar Jul 23 '18 13:07 p0ntsNL

@p0nt can you please test latest master if it works now for you?

Mikesch-mp avatar Dec 10 '18 08:12 Mikesch-mp

Hi,

i do face a similar problem with Module Version 1.3.4. Grafana config looks like this image

and is working image

Icinga Config looks like this image

Resulting in displaying 2 instead of 4 expected graphs, whereas the second one is a completely diffenrent panel image

Setting the metrics to 5 and making all metrics visible shows some other wrong panel instead of the 2nd one but does not change anything else. Isn't it necessary to set any custom var?

Rgds, Jens

jwpit avatar Feb 07 '19 13:02 jwpit

I wil make a howto video after my holidays, will be after the Icinga Camp Berlin.

Mikesch-mp avatar Feb 09 '19 10:02 Mikesch-mp

Hi Carsten, any news about this issue? Rgds, Jens

jwpit avatar Apr 08 '19 12:04 jwpit

Hi jwpit,

I worked with this nice module in our brand new monitoring solution with Icinga this week and I "fixed" the problem for my network interfaces (thanks Mike).

The module works like this: You select your service, it gets the panel number defined in your configuration and it will repeat the panel, let's say that I'm using panel 128 as repeatable panel, the repeated panels will be 129, 130, 131, 132,..., n; you get the idea.

The problem is, you have panel 128 (Network Interfaces Traffic) but then you created another panel with the number 131 (Memory), and for example, your panel 128 repeats 50 times because your network check, so, you'll end up without your "repeatable" panel 131, the module will respect the panel 131 you have setup in Grafana and will go for the Memory one, that's why you don't see the correct panels and you see the graphs from other service checks.

You can fix this in two ways:

  1. Create your dashboard with all the panels you need and at the end create the panel that will be repeatable. That one will go from 128 to n panels.
  2. Create a separate dashboard for that service, in my case, it was easier because I ended up with 300+ panels from my network interfaces.

That leads to another issue that I dirty-fixed and I need to ask a new feature for a real fix :).

Hope this helps.

IsReal8a avatar Aug 15 '19 16:08 IsReal8a

Thank you IsReal8a, this explains the behavior. Until there is a fix, i do opt for 3: don't use checks with a dynamic amount of results.

jwpit avatar Aug 15 '19 16:08 jwpit

But you'll lose this capability, I suggest to create the dashboard in a way that you'll not require to change it, cheers.

IsReal8a avatar Aug 16 '19 10:08 IsReal8a