Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

sapcc/puma-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 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/Testing

Run the exporter:

./bin/puma_exporter

New Release

If you did some changes and want to release a new version, follow these steps:

  1. Update the version VERSION in the Makefile.
  2. Proceed with the Building and pushing a new Docker image section below.

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

Upload the changes to the repo

git add -A
git commit -m "release new version 1.x.x"
git push

Update the Helm Charts

https://github.com/sapcc/helm-charts/blob/master/openstack/elektra/templates/deployment.yaml#L118

About

A prometheus metrics exporter for the puma web server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7