I'm using the latest prometheus 2.21.0 and latest node-exporter
Trying to run the query and getting no datapoints found however both metrics kube_pod_container_resource_limits_memory_bytes and node_memory_MemTotal_bytes are working independently and return data
(sum(kube_pod_container_resource_limits_memory_bytes) / :node_memory_MemTotal_bytes:sum)*100
So two questions
- I never saw such syntax before
:node_memory_MemTotal_bytes:sum- is it valid prometheus query? - What is wrong with the query if the syntax is correct?
:node_memory_MemTotal_bytes:sumdoes return data then you'll probably have to addsumthere too to remove any remaining labels there