feat: add memory monitoring for prometheus

This commit is contained in:
vrenaville
2025-02-03 13:45:24 +01:00
parent 471fe15b2b
commit 0f8f895504
3 changed files with 43 additions and 0 deletions
@@ -5,8 +5,11 @@ from prometheus_client import generate_latest
from odoo.http import Controller, route
from ..models.psutils_helpers import get_process_info
class PrometheusController(Controller):
@route("/metrics", auth="public")
def metrics(self):
get_process_info()
return generate_latest()