collectd_exporter icon indicating copy to clipboard operation
collectd_exporter copied to clipboard

Support descriptive names from JSON payload.

Open tomprince opened this issue 10 years ago • 5 comments
trafficstars

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.

tomprince avatar Sep 29 '15 22:09 tomprince

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
}

octo avatar Oct 01 '15 14:10 octo

I'm seeing the issue as well. I'm not using JSON though, but a binary network protocol.

hasso avatar Oct 14 '15 10:10 hasso

@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.

octo avatar Oct 14 '15 14:10 octo

That what I was afraid of. Thanks.

hasso avatar Oct 15 '15 09:10 hasso

FYI, collectd/go-collectd#17 implements the infrastructure required for this feature.

octo avatar Jul 27 '16 14:07 octo