#aggregation #metrics #io #github #gnort

gnort

Datadog statsd client library that provides efficient in-process metrics aggregation

3 releases

0.1.2 Mar 28, 2025
0.1.1 Mar 21, 2025
0.1.0 Mar 21, 2025

#16 in #aggregation

Download history 207/week @ 2025-03-17 543/week @ 2025-03-24 375/week @ 2025-03-31 334/week @ 2025-04-07 142/week @ 2025-04-14 230/week @ 2025-04-21 749/week @ 2025-04-28

1,496 downloads per month

MIT license

490KB
1.5K SLoC

gnort

alien dog named G-n-o-r-t looking nonplussed

gnort is a Datadog client library that provides efficient in-process metrics aggregation. I wrote this because I wanted to be able to do a mixture of aggregated and ad-hoc metrics with minimal boilerplate. Accordingly, a lot of the value of this library is the codegen via macros, registry, and aggregation windows.

I say this a "Datadog" library because the aggregation windows and push-based mechanisms aren't really compatible with the assumptions of the Extended Prometheus Cinematic Universe. I find Prometheus makes metrical analysis and processing more difficult rather than easier although I do appreciate why they went with pull-based metrics.

This library does use the dogstatsd crate under the hood, but I could imagine making it more generally "statsd" oriented.

Wishlist

I'd like it if Datadog made distributions something we could aggregate client-side. Daddy needs his count-min sketch.

Dependencies

~5–12MB
~134K SLoC