The Adapools exporter: metrics for Cardano SPO’s

Last year I started my own Cardano stakepool: the ADA house. Being as enthusiastic as I am about the Cardano project and seeing all the people from the Cardano Community working together, like as if they are one big group of friends, motivated me in wanting to participate by running my own pool.

I have been working as a professional devops engineer for almost 25 years now. Mostly for large financial corporations with complex infrastructures. I’ve encountered lots of technical challenges and learned so much during this time. Starting a Cardano stakepool was a completely new challenge but there is so much information available. And it’s just amazing to see how everybody in the community is helping each other out. Almost every item is covered by information in a blog post or a tutorial on YouTube so following these guides was as easy as that. Now when I had my pool up and running I was in the need to get my monitoring up-to-par. One of the aspects was creating a dashboard where I have an easy overview of all important metrics concerning the pool. The Cardano guild appendix provides an easy script to install Prometheus and Grafana to achieve this. You only need to import and edit a custom dashboard and you’re good to go. These websites really provide you with all the information you’ll need so I’m not gonna dive deep into that.

The dashboard I had chosen to import was also using Adapools metrics and this is not provided by the Cardano node. You need to use the Adapools api for that. The SPO at Crypto2099 found a clever way to serve this data, using a script that generates a file and inserting this information into node-exporter, which in turn serves the data to Prometheus. This is a cool solution, but for my own particular situation I wanted just a simple tool that does it all. Because of my background as a devops engineer I decided to write one using the Python programming language. This is how the adapools-exporter was created. Basically you just configure it to run with your specific id, and it fires up a webserver that serves your adapools metrics on the ip and port you assign. This webserver is then used by Prometheus as it scrapes the information so the metrics can be used in Grafana. Full installation guide is provided at my GitHub site.

Adapools-exporter

If you have questions, ideas, suggestions, problems … I’m more than happy to help you out, just drop a note 🙂

Latest Articles