wiki:MuninConfigurationMasterExampleStack

Stacking example

Attention: The content of this page has been moved to the Munin-Guide Graph aggregation stacking example. This wiki page has therefore been set to "Read only" and later will be purged.

The below configuration shows how to create a stacked graph from a data source (namely the entropy value) from two hosts.

The example creates a virtual host ("aggregates.example.com") under which we loan data values from the two other hosts, and then creates a stacked graph from the same hosts.

Note that the two individual graphs are not necessary to create the stacked graph, they're only there for reference.

[aggregates.example.com]
        update no
        contacts no

        # This graph loans data values from foo.example.com to be graphed under aggregates.example.com
        # This is not required to create the stack graph below, but is nice for reference

        foo_entropy.graph_order entropy=foo.example.com:entropy.entropy
        foo_entropy.update no
        foo_entropy.graph_category System
        foo_entropy.graph_title Entropy on foo

        # This graph loans data values from bar.example.com to be graphed under aggregates.example.com
        # This is not required to create the stack graph below, but is nice for reference

        bar_entropy.graph_order entropy=bar.example.com:entropy.entropy
        bar_entropy.update no
        bar_entropy.graph_category System
        bar_entropy.graph_title Entropy on bar

        # This graph stacks the entropy values from the hosts foo.example.com and bar.example.com

        total_entropy.update no
        total_entropy.graph_args --base 1000 -l 0
        total_entropy.graph_category System
        total_entropy.graph_title Aggregated entropy, completely bogus
        total_entropy.total_received.label not_used
        total_entropy.total_received.stack \
            foo=foo.example.com:entropy.entropy \
            bar=bar.example.com:entropy.entropy

The last part of the above configuration gives a stacked graph, like this:

If you need to reference a node with you have specified a group name for manually, then you also need to enter the node name with the group name like "Group;node.name" where the node is referenced.

Last modified at 2016-10-03T20:37:38+02:00 Last modified on 2016-10-03T20:37:38+02:00

Attachments (1)

Download all attachments as: .zip