Instrumenting a Bit Torrent client written in Crystal with Prometheus
Channel: Lorenzo Barasti
Date: 2021-07-15

Hey fellow Crystal developers, I'm glad to share this live stream I recorded in October 2020. Here, we add a Prometheus agent to our Bit Torrent client and track information on how much data we downloaded from each peer.

You'll find the source code at https://github.com/lbarasti/torrent_client.

Chapters
2:40 Stream starts
4:16 Dependencies (crometheus)
16:15 Defining a counter
19:30 Running the Crometheus server
25:50 Launching Prometheus in a container
27:55 Visualising counter data

Cross-posting live-coding sessions from https://www.twitch.tv/lbarasti
Announcing live-coding sessions and initiatives @ https://twitter.com/lbarasti