Files
session_redis_public/monitoring_prometheus/data/ir_cron.xml
T
Alexandre Fayolle 8a660b6081 [ADD] monitoring_prometheus_queue_job
This commit features a refactoring of monitoring_prometheus to get a
cron gathering some metrics from the database, and then publishing the
result on the /metrics endpoint

The new module monitoring_prometheus_queue_job extends the cron to get
information about the queue job states.
2026-09-30 19:33:16 +03:00

15 lines
613 B
XML

<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="cron_prometheus_gather_metrics" model="ir.cron">
<field name="name">Prometheus: gather metrics</field>
<field name="model_id" ref="model_prometheus_gatherer" />
<field name="state">code</field>
<field name="code">model._cron_gather_metrics()</field>
<field name="interval_number">15</field>
<field name="interval_type">minutes</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False" />
<field name="active" eval="True" />
</record>
</odoo>