collectd_exporter
collectd_exporter copied to clipboard
Support descriptive names from JSON payload.
collectd knows what the various fields in a metric are, and passes them in the JSON. the exporter should use this information.
For example collectd_processes_ps_cputime_0 is user and ..._1 is syst.
Hi @tomprince, thanks for your input! Which version of the collectd Go library (collectd/go-collectd) are you currently using? Commit 292a66c48039ea2938c5c44809b197370becdbed should have implemented this feature:
if dsname := vl.DSName(index); dsname != "value" {
name += "_" + dsname
}
I'm seeing the issue as well. I'm not using JSON though, but a binary network protocol.
@hasso the binary network protocol does not include this information, therefore it's impossible to derive it from the traffic itself. We might be able to support for types.db files though.
That what I was afraid of. Thanks.
FYI, collectd/go-collectd#17 implements the infrastructure required for this feature.