Puma Exporter is a Prometheus exporter. It provides metrics on Puma's performance, including request backlog and thread count, and serves these metrics via HTTP for Prometheus to scrape.
This exporter is designed to query Puma's control server for performance metrics and expose them to Prometheus. Metrics provided include:
puma_request_backlog
: Number of requests waiting to be processed by a thread.puma_thread_count
: Number of threads currently running.
Clone the repository and build the project:
git clone https://github.com/sapcc/puma-exporter.git
cd puma-exporter
make build
Run the exporter:
./bin/puma-exporter
After making changes to the code, you can build and push a new Docker image:
- Upgrade the version in the
Makefile
. - Run the following commands:
make docker
make push