HowToWritePlugins > fieldnames > draw

TODO: add screenshots for every keyword as examples.


How to draw the data. The default is LINE2 meaning a 2 pixels wide line. From munin 2.0, the default is LINE1, and lines are drawn in smooth slopes instead of pixel stair cases.

  • LINE1, LINE2, LINE3: Lines of different thickness
  • RRD 1.2 and later supports LINE with floating point thickness.
  • AREA: A filled area
  • STACK: A magical type. If field1.value is drawn with AREA and the next field in the plugin's output sequence (or the sequence given by graph_order) field2.draw is given as STACK, then field2 will also be drawn as AREA but stacked on top of field2. If the draw of field1 was "line" the lines will be stacked in the same way. This is useful to build up a graph that shows you what the total consists of. A plugin using STACK must always graph the first data source as LINE1/LINE2/LINE3/AREA. See graph_order? for reference.

Those keywords are straight from Rrdtool.

Starting with 1.3.3 (r1212+r1214) munin additionally supports these types:

  • LINESTACK1, LINESTACK2, LINESTACK3, or floating point thickness.

With these two the plugin does not have to specify LINE<n> or AREA for the first field and then STACK for the rest of the fields. All the stackable fields can have draw type LINESTACK<n> or AREASTACK.

  • LINE0: Internally, like a "zero-width" line, it hides the line. This is handy if you want to collect a data point, but you don't want it to show up on the graph. Any automatic scaling works as if the data were being displayed.
Last modified at 2018-03-11T22:30:04+01:00 Last modified on 2018-03-11T22:30:04+01:00