influxdata / whisper-migrator

A tool for migrating data from Graphite Whisper files to InfluxDB TSM files (version 0.10.0).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tag matching doesn't work

tulanian opened this issue · comments

With this config:

[
  {
    "pattern": "collectd.#TEXT1.#TEXT2.aggregation-cpu-average.#TEXT3",
    "measurement": "aggregation-cpu-average",
    "tags": [
      {
        "tagkey": "tier",
        "tagvalue": "#TEXT1"
      },
      {
        "tagkey": "host",
        "tagvalue": "#TEXT2"
      },
      {
        "tagkey": "metric",
        "tagvalue": "#TEXT3"
      }
    ],
    "field": "value"
  }
]

And this whisper path:

/data/whisper/collectd/dev/asterix/aggregation-cpu-average/cpu-idle.wsp

I get this:

Whisper File /data/whisper/collectd/dev/asterix/aggregation-cpu-average/cpu-idle.wsp
TSM Key-> cpu-idle,tier=dev,=,=#!~#value

"measurement" is ignored and only one tag is matched.