mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-10-23 06:01:53 +00:00
feat: add worker mem metrics
This commit is contained in:
1 parent
0d0ca60710
commit
e9ba9a45f4
3 files changed
+43
No files matched your search
@@ -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()
|
||||