I am trying to monitor CockroachDB Memory Usage through Grafana Dashboard. There are a few documents I can find to refer like below:
But nothing mentioned which Prometheus Metric should I use for the Memory Usage Monitoring.
I saw someone’s example to divide container_memory_usage_bytes by container_spec_memory_limit_bytes. But this percentage result will always be near 100%. Why is this metrics calculation result so high? Is CockroachDB supposed to be using that high percentage memory all the time?
If the above calculation cannot reflect the real memory usage, what metrics and calculation should I use?