Files
session_redis_public/monitoring_prometheus/controllers/prometheus_metrics.py
T
Yannick Payot d17d229b13 Change CI to GitHub actions
Use copier template from oca/oca-addons-repo-template

Apply linting
2023-05-24 18:22:55 +02:00

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()