metricsgrafanacollectd

Grafana - Collectd - GenericJMX as metric name


I'm trying to organize my metrics into grafana with collectd.

When I use the GenericJMX plugin collectd includes GenericJMX as part of the metric name.

Query Grafana

How do I configure collectd to not include GenericJMX?


Solution

  • You might work with a rename rule like this:

    <Chain "PreCache">
        <Rule "rename_jmx">
            <Match "regex">
                Plugin "^GenericJMX$"
            </Match>
            <Target "set">
                Plugin "java"
            </Target>
        </Rule>
    </Chain>
    

    This will rename 'GenericJMX' to 'java'.

    Hope it helps!