Looking for example how to monitor Container Memory Usage with Prometheus.
It reports all the containers ok if we using this query:
(container_memory_usage_bytes / container_spec_memory_limit_bytes) * 100 > 90
However works ok if container does not have a memory limit defined. The the divisor is 0, and the results are +Inf, meaning that the alert triggers incorrectly since +Inf matches > 90.
Any suggestions how to properly use Container Memory Usage monitoring?