We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently you get error when no data for given range is returned in InfluxdbMetric
InfluxdbMetric
Guess it would be better to do like in GraphiteMetric:
GraphiteMetric
if(res.data !== undefined && res.data.length < 1) { console.log('datasource return empty response, no data'); return { columns: ['timestamp', 'target'], values: [] }; }
@amper43 @jonyrock what do you think? Should we handle it? Maybe it should be handled by lib user?
The text was updated successfully, but these errors were encountered:
@rozetko I don`t like how it is made in prometheus.
if(res.data === undefined) { throw new Error('undefined error'); }
and then continue
Please think for a second, what you gonna do if res.data IS undefined?
res.data
undefined
Sorry, something went wrong.
Influxdb: error when no data returned #23 (#25)
8f73527
WIP: fixed "Receiving "Cannot read property 'queries' of undefined" w…
3a5adfe
…hile using PostgreSQL dashboard #23"
Fixed "Receiving "Cannot read property 'queries' of undefined" while …
9246046
…using PostgreSQL dashboard #23"
amper43
No branches or pull requests
Currently you get error when no data for given range is returned in
InfluxdbMetric
Guess it would be better to do like in
GraphiteMetric
:@amper43 @jonyrock what do you think? Should we handle it? Maybe it should be handled by lib user?
The text was updated successfully, but these errors were encountered: