[IMP] monitoring: Prometheus/OpenMetric support#3012
Conversation
|
Thanks for this. It seems interesting. For the commit name, it should be |
|
The monitoring module is already there and the PR extends it to support other output formats. (before it was just a JSON format). |
a20adb4 to
2a56bdc
Compare
|
OK, sorry, then it's totally correct. My fault. I didn't see the files changes. Anyway, maybe it makes sense to have it apart in a new module |
|
I'll try to explain the current flow of the module:
How we are currently using it:
If you don't need the other formats don't configure them. It's only using/doing what you configure and the only prometheus specific thing is the output format which is hardly enough to split the generic module in my view. It would be something different if you would include a node exporter etc. within the module to get hardware stats through an Odoo but nowadays with dockerized Odoo this should happen directly on the OS level. |
|
OK, I don't know enough the module. It was just to avoid frictions when a migrator migrates this module containing several things that are difficult to be checked if not having the correct tools. |
|
No worries. I understand the point for migrators. I have to look into the unittests anyways and try to include the output format with some validation there to ease the duty during migration. For the Odoo side it should be generic enough to only depend on the ORM API and be easier portable as long as you can provide the correct snippets during the configuration. For the migration: 16.0 is trivial. I'll try to open the PR with the migrated version soon too. |
2a56bdc to
51a2c70
Compare
…prometheus format
51a2c70 to
e0489e1
Compare
This PR adds an option to configure the output format of the monitoring and adds support for Prometheus which can just fetch the metric file via the controller.