Template hints and examples for Graphite module

graphite

(Michael Friedrich) #1

General

Look into the render api and adjust this for your templates. This docs entry also highlights that for example bgcolor can be set on a global basis in graphite itself.

https://icinga.com/docs/graphite/latest/doc/04-Templates/

urlparams … and you can even define them on a global basis in your config.ini file.

Template Examples

The module provides a common set of templates already. Please share your own examples below.

Full area and min/max values

[powerprctg.graph]
check_command = “check_batteryprctg”

[powerprctg.metrics_filters]
rta.value = “$service_name_template$.perfdata.$perfdata_label$.value”

[powerprctg.urlparams]
areaMode = "all"
yMin = "0"
yMax = “100”

(Michael Friedrich) pinned #2