Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ts.mrange returns no data when label has spaces within #44

Closed
alex6058 opened this issue Aug 18, 2020 · 0 comments · Fixed by #46
Closed

ts.mrange returns no data when label has spaces within #44

alex6058 opened this issue Aug 18, 2020 · 0 comments · Fixed by #46
Assignees
Labels
bug Something isn't working
Milestone

Comments

@alex6058
Copy link

ts.mrange returns no data when label has spaces within

Example command: ts.mrange - + WITHLABELS FILTER location="New Paltz" metric=feels_like mode=hourly
redis-cli output:

1) 1) "weather:New Paltz:hourly:feels_like"
   2) 1) 1) "location"
         2) "New Paltz"
      2) 1) "metric"
         2) "feels_like"
      3) 1) "mode"
         2) "hourly"
   3)  1) 1) (integer) 1597770000000
          2) 77.72
       2) 1) (integer) 1597773600000
          2) 77.92
...

Grafana query:

{
  "request": {
    "url": "api/ds/query",
    "method": "POST",
    "data": {
      "queries": [
        {
          "command": "ts.mrange",
          "filter": "location=\"New Paltz\" metric=feels_like mode=hourly",
          "hide": false,
          "legend": "location",
          "query": "",
          "refId": "B",
          "type": "timeSeries",
          "value": "metric",
          "datasource": "Redis",
          "key": "",
          "datasourceId": 1,
          "intervalMs": 300000,
          "maxDataPoints": 1458,
          "orgId": 1
        }
      ],
      "range": {
        "from": "2020-08-18T15:52:27.427Z",
        "to": "2020-08-24T00:00:00.000Z",
        "raw": {
          "from": "now-6h",
          "to": "2020-08-24T00:00:00.000Z"
        }
      },
      "from": "1597765947427",
      "to": "1598227200000"
    }
  },
  "response": {
    "results": {
      "B": {
        "refId": "B",
        "series": null,
        "tables": null,
        "dataframes": null
      }
    }
  }
}
@mikhail-vl mikhail-vl added the bug Something isn't working label Aug 19, 2020
@mikhail-vl mikhail-vl self-assigned this Aug 19, 2020
@mikhail-vl mikhail-vl added this to the Version 1.2 milestone Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants