Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

dateMath.parse is not a function #10

Closed
sunfeilong1993 opened this issue Apr 20, 2016 · 8 comments
Closed

dateMath.parse is not a function #10

sunfeilong1993 opened this issue Apr 20, 2016 · 8 comments

Comments

@sunfeilong1993
Copy link

sunfeilong1993 commented Apr 20, 2016

use "grafana3.0.0-beta2" and "kairosdb-datasource" on windows
When i click "This Week" “This Month” and "This Year", I get an error “dateMath.parse is not a function”


boot.js:36 TypeError: dateMath.parse is not a function
    at convertToKairosTime (datasource.js?bust=1461123434286:426)
    at KairosDBDatasource.performTimeSeriesQuery (datasource.js?bust=1461123434286:65)
    at KairosDBDatasource.query (datasource.js?bust=1461123434286:55)
    at h.f.issueQueries (boot.js:31)
    at h.issueQueries (boot.js:17)
    at h (boot.js:36)
    at boot.js:36
    at n.$eval (boot.js:36)
    at n.$digest (boot.js:36)
    at n.$apply (boot.js:36)

when i use "grafana-2.6.0", this error is disappeared

@Weijianlin
Copy link

use kairosdb-datasource and pie chart

TypeError: dateMath.parse is not a function
at convertToKairosTime (datasource.js?bust=1460967128164:426)
at KairosDBDatasource.performTimeSeriesQuery (datasource.js?bust=1460967128164:65)
at KairosDBDatasource.query (datasource.js?bust=1460967128164:55)
at PieChartCtrl.f.issueQueries (boot.8698c185.js:31)
at h (boot.8698c185.js:36)
at boot.8698c185.js:36
at n.$eval (boot.8698c185.js:36)
at n.$digest (boot.8698c185.js:36)
at boot.8698c185.js:36
at e (boot.8698c185.js:35)

@strotter
Copy link

Also seeing this same issue with Grafana 3.0.3 and latest Kairos plugin.

@strotter
Copy link

@sunfeilong1993 I have fixed this issue and made a pull request: #13

@sunfeilong1993
Copy link
Author

@strotter Thank you, this problem is disappeared .

@strotter
Copy link

@sunfeilong1993 We are now having more severe issues with this plugin in Grafana 3.0.3 after fixing this bug, building a new dashboard and graph panel creates invalid queries that aren't downsampled/aggregated properly and are showing datapoints that don't make sense... have you run into anything similar? And what version of Kairos are you on with Grafana 3.0?

@sunfeilong1993
Copy link
Author

sunfeilong1993 commented May 25, 2016

Sorry, this bug is not disappeared. Because I did not choose any data source so when I create a new graph panel this bug is not appear. But when I choice Kairos data source tthis bug appeared again. Maybe I was not using the latest version.

"building a new dashboard and graph panel creates invalid queries that aren't downsampled/aggregated properly and are showing datapoints that don't make sense." If you mean is “Create a valid query, but get some data”, I did not encounter this problem。

`
Windows 10

grafana-3.0.0-beta2

kairosdb-1.1.1-1 with cassandra-3.4
`

My English is poor, I am sorry, If you do not know what I mean.

@samuelbenhamou
Copy link

@strotter , tested your fix with kairos-1.1.1, grafana 3.0.4 and it seems ok for me so far

@jifwin
Copy link
Contributor

jifwin commented Jan 30, 2017

Please reopen if this problem persists.

@jifwin jifwin closed this as completed Jan 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants