Coder Social home page Coder Social logo

Metrics on workers about exq HOT 8 OPEN

akira avatar akira commented on May 14, 2024
Metrics on workers

from exq.

Comments (8)

mbuhot avatar mbuhot commented on May 14, 2024 2

@LeeXGreen Here's a gist: https://gist.github.com/mbuhot/93eab4472901eb18294d4eff1456aff6#file-exq_statsd_middleware-ex

from exq.

j-mcnally avatar j-mcnally commented on May 14, 2024

Should we be storing this to redis, or just log it?

from exq.

akira avatar akira commented on May 14, 2024

Not sure yet. This is definitely more of a nice to have though. I was wondering if there's a coda hale metrics type library for erlang that can be configured to output to different sources.

from exq.

Gyllsdorff avatar Gyllsdorff commented on May 14, 2024

I think it would be enough to just expose the metric to callback somewhere and let the developer connect it to their prefered tool. For some people just want to log the data and some uses a full metric tool like datadog.

from exq.

mbuhot avatar mbuhot commented on May 14, 2024

We've recently implemented a simple middleware to export counts and timings from Exq to StatsD via ExStatsD in the same format as sidekiq pro metrics

Would you be interested in a PR? It would add an optional dependency on the StatsD client package.

from exq.

LeeXGreen avatar LeeXGreen commented on May 14, 2024

@mbuhot I'd be interested to see your middleware, even if it doesn't get merged into exq :)

from exq.

LeeXGreen avatar LeeXGreen commented on May 14, 2024

@mbuhot Thanks! I was about to build this exact same thing, and this is exactly what I need.

One small question:

https://gist.github.com/mbuhot/93eab4472901eb18294d4eff1456aff6#file-exq_statsd_middleware-ex-L35
The code references "duration" in the pipeline assigns, and it appears that my pipelines do not have a "duration" value. Did you have another piece of middleware that sets this? I think I have a workaround for this, but I'd appreciate any info you remember.

Thanks again!

from exq.

mbuhot avatar mbuhot commented on May 14, 2024

@LeeXGreen yes we also extracted the timing code out of the Logger middleware into its own middleware, which just populated the duration value. It's then used by the metrics middleware and a custom Logger middleware.

from exq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.