What happened:
When using InfluxDB with isMutliFields option set to true, metrics are not dynamic.
i.e. docker collector metrics look like this:
/intel/docker/22e33jfhk/cgroups/cpu_stats/cpu_shares
instead of:
/intel/docker/cgroups/cpu_stats/cpu_shares with docker_id in tag.
Steps to reproduce it (as minimally and precisely as possible):
Run Snap with Docker collector and InfluxDB publisher
Create task with option isMultiFields set to true.
What happened: When using InfluxDB with
isMutliFields
option set totrue
, metrics are not dynamic. i.e. docker collector metrics look like this:/intel/docker/22e33jfhk/cgroups/cpu_stats/cpu_shares
instead of:/intel/docker/cgroups/cpu_stats/cpu_shares
withdocker_id
in tag.Steps to reproduce it (as minimally and precisely as possible):
isMultiFields
set to true.Anything else do we need to know (e.g. issue happens only occasionally): Namespace with dynamic elements should be also used in case when
isMultiFields
is set to true. https://github.com/intelsdi-x/snap-plugin-publisher-influxdb/blob/master/influxdb/influxdb.go#L252