Graphite and icingaweb2: do not show certain graphs

Hi.

I have been using icingaweb2 with graphite for more than 2 years, which works very well.
Also the adjustments with templates (/etc/icingaweb/modules/graphite/) work as desired.

But there is one question:
Is it possible not to display certain graphs in icingaweb2?
(Not every graph is necessary)

Thanks in advance.

Greetings

If you don’t need the metrics, set the enable_perfdata attribute to false in your host/service objects. This disables collecting the metrics in Icinga itself.

https://icinga.com/docs/icinga2/latest/doc/09-object-types/#service

Existing wsp files need to be purged manually from whisper.

Cheers,
Michael

1 Like

That’s very helpful.
Thank you very much.

To become even more precise:
A check like cluster-zone returns several performance data,
among others:
last_messages_sent
and
last_messages_received.

For these two timestamps a graph doesn’t seem to make much sense to me.

Is there also a way not to display these graphs?

Thanks in advance.

Greetings

One thing comes to mind - configure the carbon cache receiver in a way that it drops metrics by these patterns. In terms of the Icinga built-in checks there’s no support for filtering metrics away, either all or nothing.

https://graphite.readthedocs.io/en/latest/config-carbon.html#whitelist-and-blacklist

Cheers,
Michael

1 Like

That matches perfectly.

Thank you very much.

Greetings

If anybody else is interested in this,
here is an example of how to manage this.

The blacklist.conf (e.g. /etc/carbon/blacklist.conf) for the
above mentioned cluster-zone check may look like this

^.+\.cluster-zone\..+last_messages_sent.+$
^.+\.cluster-zone\..+last_messages_received.+$

The matching metrics will be dropped by carbon-cache.
Old metrics will still be available and have to be delete manually.

Please note, that
USE_WHITELIST = True
has to be set in the carbon.conf (this enables whitelisting and blacklisting)

1 Like