mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 02:08:36 +00:00
[13.0][ADD] monitoring_prometheus (#239)
[13.0][ADD] monitoring_prometheus
This commit is contained in:
committed by
Yannick Vaucher
co-authored by
Yannick Vaucher
parent
35cc8297b2
commit
7401d6f204
@@ -0,0 +1 @@
|
||||
from . import prometheus_metrics
|
||||
@@ -0,0 +1,11 @@
|
||||
# Copyright 2016-2021 Camptocamp SA
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
|
||||
|
||||
from odoo.http import Controller, route
|
||||
from prometheus_client import generate_latest
|
||||
|
||||
|
||||
class PrometheusController(Controller):
|
||||
@route('/metrics', auth='public')
|
||||
def metrics(self):
|
||||
return generate_latest()
|
||||
Reference in New Issue
Block a user