Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Python Profiling

by
Web-veistämö Oy/Avoin.Systems, Miku Laitinen.
- 30/07/2019 17:15:44
Sure, here's our Prometheus instrumentation controller: https://gist.github.com/mlaitinen/f3ae45d1e3ee60a4af907fef7b585059

I have planned to extend it in a way that you could easily add new metrics without touching the code. I'd like to use Prometheus to monitor the number of failed emails, failed queue jobs, etc. and many of these things vary from database to database.

Miku Laitinen
AVOIN.SYSTEMS
+358 44 239 1985


On Mon, Jul 29, 2019 at 7:27 PM David Arnold <dar@xoe.solutions> wrote:
Hi Miku, Could you probably just share a gist quickly? 

On Mon, Jul 29, 2019 at 9:16 AM Miku Laitinen <miku@avoin.systems> wrote:
I've done a /metrics endpoint for Odoo and I'm using it with Prometheus. I guess I could contribute it to OCA if someone tells me which repository to target. server-tools?

Miku Laitinen
AVOIN.SYSTEMS
+358 44 239 1985


On Thu, Jul 25, 2019 at 7:32 PM David Arnold <dar@xoe.solutions> wrote:
>How do you plan to use those profiling tools along with containers and 

Probably Odoo can be patched to return profiling information on a metrics endpoint for Prometheus to scrape..
I have a Prometheus metrics patch in the making with just standard odoo metrics (no real profiling).

I'm pretty confident with Odoo patching (as in git patches) for a while now.
It's like creativity being released after a long jail sentence :-)

So there should be a prometheus branch shortly here: https://github.com/xoe-labs/odoo-dev

On Wed, Jul 24, 2019 at 9:51 AM Jairo Llopis <jairo.llopis@tecnativa.com> wrote:
Interesting. I didn't know about Austin and it looks quite good. Pyflame is lacking Python 3.7 support for too long already.

Py-spy also works pretty fine, as I used it in the past and it outputs directly an interactive SVG that you can play with in a browser. It still lacks a raw output format that you can upload to https://www.speedscope.app/, but it's on the roadmap.

How do you plan to use those profiling tools along with containers and k8s?

El mar., 23 jul. 2019 a las 19:26, David Arnold (<dar@xoe.solutions>) escribió:
Hi All,

Buschfunk!

This might look interesting to some of you:



On topic for statistical profiling.

Best Regards,
David A.

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe



--
Jairo Llopis

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference