Statsd client in swift

background

following the release of swift-metrics, this pitch is for a compatible library that uses the statsd protocol, and can be used to integrate applications with observability solutions that support statsd such as:

architecture

a statsd client that uses swift-nio to establish a UDP connection to the statsd server

metrics types are mapped as following:

  • Counter -> Counter
  • Gauge -> Gauge
  • Recorder -> Histogram
  • Timer -> Timer

code: GitHub - tomerd/swift-statsd-client: metrics backend for swift-metrics that uses the statsd protocol

6 Likes

+1 definitely on-topic for SSWG. Great to see the metrics API proving itself, and showing it's possible to build a statsd client in just a few hundreds lines of code.

Can probably default the port to 8125.

3 Likes

awesome! +1

1 Like

love it! +1

+1, looking great :-) awesome to have statsd support :-)