mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 08:47:40 +00:00
feat: add memory monitoring for prometheus
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user