Not able to find machines with AND operator #12796
Unanswered
sunilkumar-nfer
asked this question in
Q&A
Replies: 2 comments
-
This is what ChatGPT gave me:
(I have not checked the answer) |
Beta Was this translation helpful? Give feedback.
0 replies
-
@roidelapluie, i try this, but it also gives me an empty query result. can you try and check whether this query working fine with only conditions of CPU and RAM? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What did you do?
we have 2k VMs where node exporter is running , We want to know all the VMs where these conditions are f fulfilled
but using the AND operator we are not able to find those.
taken as example
100 - (100 * (node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes)) > 70 and avg_over_time(node_cpu_seconds_total{mode="idle"}[5m]) < 30
this query should return the VMs with CPU usage greater than 70% and memory usage greater than 70 percent
there are many machines that fulfil that conditions but we are not able to find those machines via promQL
Can anyone help here.
What did you expect to see?
Above query should return the VMs that fulfil that conditions .
What did you see instead? Under which circumstances?
the above query give us empty result
System information
No response
Prometheus version
No response
Prometheus configuration file
No response
Alertmanager version
No response
Alertmanager configuration file
No response
Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions