Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Making it possible to push metrics in batches rather than one at a time #23

Merged
merged 1 commit into from
Jan 13, 2017

Commits on Jan 13, 2017

  1. Making it possible to push metrics in chunks rather than one at a time

    When using `dogstatde` to push a _lot_ of custom Datadog metrics, we've
    observed that the overhead of checking workers out & back in of the
    `dogstatsd_worker` `wpool` can become a performance bottleneck.
    
    This patch makes it possible to submit several metrics of the same type
    at one time, hence allowing for a single worker check-out/in cycle to submit
    them all, for example:
    ```
    dogstatsd:gauge([{"users", UserTypeCount, #{ user_type => UserType }}
                     || {UserTypeCount, UserType} <- UserCounts]).
    ```
    
    We've deployed that in production, and found a noticeable difference in our
    use case.
    
    This patch should be entirely backward-compatible.
    
    Updated tests, and added a few more.
    wk8 committed Jan 13, 2017
    Configuration menu
    Copy the full SHA
    ae0b4e0 View commit details
    Browse the repository at this point in the history