grafana-prtg
grafana-prtg copied to clipboard
PanelQueryRunner Error TypeError: dateMath.parse is not a function
I recently upgraded to Grafana 6.7.1 and I am getting below error for PRTG datasource. Please help.
PanelQueryRunner Error TypeError: dateMath.parse is not a function
at PRTGDataSource.query (datasource.js:64)
at runRequest.ts:152
at j (runRequest.ts:102)
at e.<anonymous> (PanelQueryRunner.ts:153)
at s (runtime.js:45)
at Generator._invoke (runtime.js:271)
at Generator.forEach.t.<computed> [as next] (runtime.js:97)
at b (app.71af4420a0fca6a7ffc6.js:2)
at i (app.71af4420a0fca6a7ffc6.js:2)
I've the same issue after upgrading from 6.6 to 6.7. It's possible to create query (searching for Metrics) but no content will be shown.
This may be related to the change mentioned in the release notes. For 6.6 and 6.7
Notice about upcoming changes backendSrv for plugin authors
In our mission to migrate away from AngularJS to React we have removed all AngularJS dependencies in the core data retrieval service
backendSrv . This change is already in master and will be introduced in the next major Grafana release.
Removing the AngularJS dependencies in backendSrv has the unfortunate side effect of AngularJS digest no longer being triggered for
any request made with backendSrv. Because of this, external plugins using backendSrv directly may suffer from strange behaviour in
the UI.
To remedy this issue as a plugin author you need to trigger the digest after a direct call to backendSrv.
Example:
backendSrv.get('http://your-url/api').then(result => {
this.result = result;
this. $scope. $digest();
});
yep, same issue here. 6.7 is not compatible with prtg plugin
Can confirm that the latest "master" ist not working with 6.6 and 6.7
Looks like it's working fine again in 6.7.2!
Yes it is working now