beanstalkd-exporter
Prometheus metrics exporter for Beanstalkd, running as a single service (with Beanstalkd and the Exporter running).
Installation
As a standalone Pip Package
You can install the exporter directly via pip:
pip install beanstalkd-exporter
Once installed, you can start the exporter. By default, it connects to a running Beanstalkd instance on 127.0.0.1:11300.
beanstalkd-exporter
Configuration Environment Variables
LISTEN_HOST: Host for the Prometheus metrics server to listen on (default:0.0.0.0)EXPORTER_PORT: Port for the Prometheus metrics server (default:9419)BEANSTALK_PORT: Port where Beanstalkd is running (default:11300)SCRAPE_INTERVAL: How often to scrape metrics in seconds (default:5.0)
As a Unified Docker Container
The provided Docker image serves as a universal container. It starts both the beanstalkd daemon and the beanstalkd-exporter service automatically.
docker pull madebyai/beanstalkd-exporter:latest
docker run -d --name beanstalkd-exporter -p 11300:11300 -p 9419:9419 madebyai/beanstalkd-exporter:latest
Metrics will be available at http://localhost:9419/metrics. Beanstalkd will be accessible on 11300.
What It Does
This exporter connects to a local Beanstalkd server, regularly runs stats and stats-tube commands, and converts the responses to Prometheus format.
Exported Metrics
Metrics are prefixed with beanstalk_ and map directly to native Beanstalkd stats.
Global Server Metrics:
beanstalk_current_jobs_ready(Gauge): Total ready jobs across all tubes.beanstalk_current_connections(Gauge): Active connections to the server.beanstalk_cmd_put_total(Counter): Cumulative number ofputcommands.- ...and all other standard global Beanstalkd stats.
Tube-Specific Metrics: (These include the tube="<tube_name>" label)
beanstalk_tube_current_jobs_ready(Gauge): Ready jobs in a specific tube.beanstalk_tube_cmd_delete_total(Counter): Number of delete commands issued in a specific tube.- ...and all other standard tube-level Beanstalkd stats.
Exporter Health Metrics:
beanstalk_up:1if Beanstalkd is reachable and successfully scraped,0otherwise.beanstalk_exporter_scrape_duration_seconds: Time taken to complete a scrape cycle.beanstalk_exporter_scrape_errors_total: Number of errors encountered while scraping.
Example: Prometheus Configuration
To configure Prometheus to scrape this exporter, simply add a new job to your prometheus.yml file:
scrape_configs:
- job_name: 'beanstalkd'
scrape_interval: 5s
static_configs:
- targets: ['localhost:9419']
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Author: made-ai
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file beanstalkd_exporter-0.1.1.tar.gz.
File metadata
- Download URL: beanstalkd_exporter-0.1.1.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce85b2d76b90709ce7b5e2559764aaa1caaae999d4fda75be50d29cfa089904b
|
|
| MD5 |
5d23ba8733efb87d3defe55c1ec1a4f1
|
|
| BLAKE2b-256 |
48b7fe0fb01e2a37dd9791f5bded7faeb4f487563b328d390b344e6827783ec0
|
File details
Details for the file beanstalkd_exporter-0.1.1-py3-none-any.whl.
File metadata
- Download URL: beanstalkd_exporter-0.1.1-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
514c2ec9dddb44ca6a2f2243ac9e146898411e1d0ed46300b5c90a06febdead5
|
|
| MD5 |
dafeeb219ebb0bce05154eee747f25d6
|
|
| BLAKE2b-256 |
ff6f2ba7304400f935067d2f66209f26c735fe886bdc0875cdfe961a08b79fbc
|