# Template hints and examples for Graphite module

**URL:** <https://community.icinga.com/t/template-hints-and-examples-for-graphite-module/195>\
**Category:** Icinga Web Modules\
**Tags:** graphite\
**Created:** [January 18, 2019, 11:55am UTC](https://community.icinga.com/t/template-hints-and-examples-for-graphite-module/195 "2019-01-18T11:55:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnsmichi](https://community.icinga.com/user_avatar/community.icinga.com/dnsmichi/32/7721_2.png) [@dnsmichi](https://community.icinga.com/u/dnsmichi)\
**Post date:** [January 18, 2019, 11:55am UTC](https://community.icinga.com/t/template-hints-and-examples-for-graphite-module/195/1 "2019-01-18T11:55:47Z")

</div>

# General

Look into the render api and adjust this for your templates. This [docs entry](https://graphite.readthedocs.io/en/latest/render_api.html#bgcolor) 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/](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

```auto
[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”

```

---

<div class="post-metadata">

**Author:** ![dnsmichi](https://community.icinga.com/user_avatar/community.icinga.com/dnsmichi/32/7721_2.png) [@dnsmichi](https://community.icinga.com/u/dnsmichi)\
**Post date:** [January 18, 2019, 11:56am UTC](https://community.icinga.com/t/template-hints-and-examples-for-graphite-module/195/2 "2019-01-18T11:56:02Z")

</div>


