DescartesResearch / TeaStore

A micro-service reference test application for model extraction, cloud management, energy efficiency, power prediction, single- and multi-tier auto-scaling
https://se.informatik.uni-wuerzburg.de
Apache License 2.0
118 stars 136 forks source link

Is it possible to get heap usage metric of the services? #262

Open hasannyr opened 7 months ago

hasannyr commented 7 months ago

I change the heap limit of the web-ui service via env variable Xmx but when I watched the memory usage of the pods, this limit does not affect anything. Probably, there are many components that affect the memory usage besides heap. Can I collect the heap usage of the services? Do you export these metrics from any endpoint that I can use with Prometheus?

SimonEismann commented 7 months ago

We currently don't have any built-in features to track the heap usage. So you would need to set up some sort of monitoring that collects these by setting up some existing monitoring tool that supports this or implement an endpoint in the tea store that Prometheus could scrape to get these metrics.

hasannyr commented 7 months ago

We currently don't have any built-in features to track the heap usage. So you would need to set up some sort of monitoring that collects these by setting up some existing monitoring tool that supports this or implement an endpoint in the tea store that Prometheus could scrape to get these metrics.

Thanks for your fast reply. Is there any application parameter that I can change as an environment variable like heap limit?