mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 08:47:40 +00:00
Use copier template from oca/oca-addons-repo-template Target Python3.8 Apply linting Fix a missing call to super Ensure all modules have a 13.0.x.x.x version
13 lines
328 B
Python
13 lines
328 B
Python
# Copyright 2016-2021 Camptocamp SA
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
|
|
|
|
from prometheus_client import generate_latest
|
|
|
|
from odoo.http import Controller, route
|
|
|
|
|
|
class PrometheusController(Controller):
|
|
@route("/metrics", auth="public")
|
|
def metrics(self):
|
|
return generate_latest()
|