feat: add memory monitoring for prometheus (#481)

This commit is contained in:
Vincent Renaville
2025-02-04 10:54:34 +01:00
committed by GitHub
co-authored by GitHub
parent 28afe2dfae
commit 5fe59ffae3
4 changed files with 45 additions and 2 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()