wiki:fieldname.colour

HowToWritePlugins > fieldnames > colour

{fieldname}.colour

Attention: Content of this page should be moved to the Munin-Guide --> Visit the Guide now.

Patch from ticket #54. This is available in subversion from revision 1047 is in 1.2.5 and 1.3.3.

It simply adds a new config option ".colour" to fields. Use as follows:

foo.label total
foo.draw LINE2
foo.colour 000000

NOTE: The use of "rrggbb" instead of "#rrggbb" in the colour field!

Example at http://www.eltanin.net/munin/behemoth/behemoth-custom_processes.html

You can pick a color either by its HTML code (i.e. six hex digits), or by an index into the palette used. Somehow map the entry to a number, then use "<field>.colour COLOUR<n>" where "<n>" is that number. (requires munin 2.0)

Default palette

Color name Old palette New default palette
COLOUR0
COLOUR1
COLOUR2
COLOUR3
COLOUR4
COLOUR5
COLOUR6
COLOUR7
COLOUR8
COLOUR9
COLOUR10
COLOUR11
COLOUR12
COLOUR13
COLOUR14
COLOUR15
COLOUR16
COLOUR17
COLOUR18
COLOUR19
COLOUR20
COLOUR21
COLOUR22
COLOUR23
COLOUR24
COLOUR25
COLOUR26
COLOUR27
COLOUR28
Last modified at 2016-10-17T03:34:09+02:00 Last modified on 2016-10-17T03:34:09+02:00