feat: add prometheus + cloud_plateform azure

This commit is contained in:
vrenaville
2022-05-12 11:33:25 +02:00
parent 937e87220a
commit 19da00949a
13 changed files with 253 additions and 0 deletions
@@ -0,0 +1,11 @@
# Copyright 2016-2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from openerp.http import Controller, route
from prometheus_client import generate_latest
class PrometheusController(Controller):
@route("/metrics", auth="public")
def metrics(self):
return generate_latest()