Skip to content

sapcc/puma-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puma Exporter

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.

Overview

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.

Getting Started

Installation

Clone the repository and build the project:

git clone https://github.com/sapcc/puma-exporter.git
cd puma-exporter
make build

Usage

Run the exporter:

./bin/puma-exporter

Building and pushing a new Docker image

After making changes to the code, you can build and push a new Docker image:

  1. Upgrade the version in the Makefile.
  2. Run the following commands:
make docker
make push

About

A prometheus metrics exporter for the puma web server

Resources

License

Stars

Watchers

Forks

Packages

No packages published