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

OpenTSDB complains in Bosun UI about parsing JSON #1568

Closed
thenewwazoo opened this issue Jan 25, 2016 · 2 comments · Fixed by #1569
Closed

OpenTSDB complains in Bosun UI about parsing JSON #1568

thenewwazoo opened this issue Jan 25, 2016 · 2 comments · Fixed by #1569

Comments

@thenewwazoo
Copy link
Contributor

Currently running a build of 4b38062, and running query results in:

opentsdb: {"start":"1h-ago","queries":[{"aggregator":"sum","metric":"linux.loadavg_1_min","rateOptions":{},"tags":{"host":"ops-opentsdb-0|ops-opentsdb-1|ops-opentsdb-2|ops-opentsdb-3|ops-opentsdb-4|ops-opentsdb-5|ops-opentsdb-6|ops-opentsdb-7"},"filters":[{"type":"iwildcard","tagk":"host","filter":"ops-o*","groupBy":true}]}]}: Unable to parse the given JSON

appearing in the UI. Bosun has config file line tsdbVersion = 2.1, and per kylebrandt's instruction I've validated that $scope.filterSupport is not defined.

@thenewwazoo
Copy link
Contributor Author

The JSON object that's requested:

{
  "start": "1h-ago",
  "queries": [
    {
      "aggregator": "sum",
      "metric": "linux.loadavg_1_min",
      "rateOptions": {},
      "tags": {
        "host": "ops-opentsdb-0|ops-opentsdb-1|ops-opentsdb-2|ops-opentsdb-3|ops-opentsdb-4|ops-opentsdb-5|ops-opentsdb-6|ops-opentsdb-7"
      },
      "filters": [
        {
          "type": "iwildcard",
          "tagk": "host",
          "filter": "ops-open*",
          "groupBy": true
        }
      ]
    }
  ]
}

@thenewwazoo
Copy link
Contributor Author

Confirmed fixed in 68af647

tkrajca pushed a commit to RepositPower/bosun that referenced this issue Mar 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant