This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
89 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters