grafana-timelion-datasource icon indicating copy to clipboard operation
grafana-timelion-datasource copied to clipboard

[Templating] Repeat panel doesn't work

Open herver opened this issue 7 years ago • 2 comments

Hi,

I'm trying to use the timelion datasource with a templated query that is supposed to repeat the panel for each value (both quoted and unquoted q=)

It turns out that even though the panels are duplicated the correct amount of time and the title of the panels is right.

image

The query sent to Timelion contains all the values of the variable as you can see below:

{
  "request": {
    "method": "POST",
    "url": "api/datasources/proxy/8231/run",
    "data": {
      "sheet": [
        ".es(index=xxxxxxxx_reports*, q=\"data.sec.prot:{gsi,https,krb5,sss,unix}\")"
      ],
      "time": {
        "from": "2017-11-24T17:23:51 +0100",
        "interval": "1s",
        "mode": "absolute",
        "timezone": "GMT",
        "to": "2017-11-24T17:53:51 +0100"
      }
    }
  },
  "response": {
    "title": "Error:  in cell #1: Cannot read property 'total' of undefined",
    "message": "Error:  in cell #1: Cannot read property 'total' of undefined"
  }
}

herver avatar Nov 24 '17 16:11 herver

Hi @herver can it be related to https://github.com/gbrian/grafana-timelion-datasource/pull/6

gbrian avatar Apr 03 '18 09:04 gbrian

Hi,

#18 should fix this

mateczagany avatar Nov 30 '18 09:11 mateczagany