GreptimeTeam / greptimedb

An Open-Source, Cloud-Native, Unified Time Series Database for Metrics, Logs and Events with SQL/PromQL supported. Available on GreptimeCloud.
http://greptimedb.rs/
Apache License 2.0
4.03k stars 292 forks source link

PromQL error #2154

Closed yuanbohan closed 7 months ago

yuanbohan commented 11 months ago

What type of bug is this?

Unexpected error

What subsystems are affected?

Frontend, Datanode

What happened?

I tried some PromQL expressions of node-exporter dashboard, but failed to query expected results for some expressions.

Error: No field named cpu. Valid fields are node_load5.greptime_timestamp, "AVG(node_load5.greptime_value)".
No field named node_memory_swapfree_bytes.instance. Valid fields are "node_memory_SwapTotal_bytes".instance, "node_memory_SwapTotal_bytes".job, "node_memory_SwapTotal_bytes".greptime_timestamp, "node_memory_SwapTotal_bytes".greptime_value, "node_memory_SwapFree_bytes".instance, "node_memory_SwapFree_bytes".job, "node_memory_SwapFree_bytes".greptime_timestamp, "node_memory_SwapFree_bytes".greptime_value.

What operating system did you use?

Linux beelink 6.4.7-arch1-2 #1 SMP PREEMPT_DYNAMIC Mon, 31 Jul 2023 11:41:04 +0000 x86_64 GNU/Linux

Relevant log output and stack trace

No response

How can we reproduce the bug?

waynexia commented 7 months ago

I've verified this is fixed on the current latest HEAD, the corresponding PR should be https://github.com/GreptimeTeam/greptimedb/pull/2297