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

occasional exception in CPU graph #390

Closed
tsearle opened this issue Nov 15, 2023 · 1 comment
Closed

occasional exception in CPU graph #390

tsearle opened this issue Nov 15, 2023 · 1 comment

Comments

@tsearle
Copy link
Contributor

tsearle commented Nov 15, 2023

using a slightly customised version of this dashboard
https://grafana.com/grafana/dashboards/19650-node-exporter-vector-host-metrics/

somtimes the cpu graph errors with this exception, sometimes it does not

Nov 15 15:11:02 ip-10-150-3-194 qryn[587]: Empty <[Object: null prototype] {}> {
Nov 15 15:11:02 ip-10-150-3-194 qryn[587]: end: '1700061060',
Nov 15 15:11:02 ip-10-150-3-194 qryn[587]: query: 'sum by(instance) (irate(host_cpu_seconds_total{instance="ip-10-150-4-35", mode="idle"}[1m0s])) / on(in>
Nov 15 15:11:02 ip-10-150-3-194 qryn[587]: start: '1700060760',
Nov 15 15:11:02 ip-10-150-3-194 qryn[587]: step: '15'
Nov 15 15:11:02 ip-10-150-3-194 qryn[587]: }
Nov 15 15:11:02 ip-10-150-3-194 qryn[587]: RangeError: offset is out of bounds
Nov 15 15:11:02 ip-10-150-3-194 qryn[587]: at Uint8Array.set ()
Nov 15 15:11:02 ip-10-150-3-194 qryn[587]: at Uint8ArrayWriter.writeString (/usr/lib/node_modules/qryn/wasm_parts/main.js:274:14)
Nov 15 15:11:02 ip-10-150-3-194 qryn[587]: at pql (/usr/lib/node_modules/qryn/wasm_parts/main.js:167:14)
Nov 15 15:11:02 ip-10-150-3-194 qryn[587]: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Nov 15 15:11:02 ip-10-150-3-194 qryn[587]: at async module.exports.pqlRangeQuery (/usr/lib/node_modules/qryn/wasm_parts/main.js:58:10)
Nov 15 15:11:02 ip-10-150-3-194 qryn[587]: at async module.exports.rangeQuery (/usr/lib/node_modules/qryn/promql/index.js:20:18)
Nov 15 15:11:02 ip-10-150-3-194 qryn[587]: at async Object.handler (/usr/lib/node_modules/qryn/lib/handlers/prom_query_range.js:22:20)

@akvlad
Copy link
Collaborator

akvlad commented Nov 15, 2023

should be fixed. Merged to master. @lmangani if you have time, please release. Or I'll do it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants