We have a couple of Java services that we would like to add monitoring/alarms to.
We were collecting memory usage information from the JVM. Then, we noticed that ElasticSearch has a metric called memory pressure which sounds like a useful metric for our Java services as well.
The problem is that I can't figure out how it works. I've tried searching for "memory pressure" in the code on their GitHub, to no avail.
When I try to search for the formula or an explanation of how it calculates this, I somehow always end up finding the same two articles: Understanding the Memory Pressure Indicator and JVM memory pressure indicator.
Those nicely explain how to interpret the values ElasticSearch calculates, but not how it calculates it.
Does anyone know how the ElasticSearch memory pressure calculation works under the hood?
