intelsdi-x / snap-plugin-publisher-influxdb

Publishes Snap metrics to InfluxDB
http://snap-telemetry.io/
Apache License 2.0
8 stars 40 forks source link

No dynamic metrics with 'isMultiFields' option #119

Closed ghost closed 7 years ago

ghost commented 7 years ago

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):

  1. Run Snap with Docker collector and InfluxDB publisher
  2. Create task with option isMultiFields set to true.
  3. See results in task watch or Grafana.

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