gbrian / grafana-timelion-datasource

ELK Timelion's data source for Grafana
MIT License
15 stars 12 forks source link

[Templating] Repeat panel doesn't work #8

Open herver opened 6 years ago

herver commented 6 years ago

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"
  }
}
gbrian commented 6 years ago

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

mateczagany commented 5 years ago

Hi,

18 should fix this