Installation Guide¶
This guide provides quick installation instructions for the Gunicorn Prometheus Exporter.
Quick Start¶
Install the basic package:
This includes: - Sync and thread worker support - Basic Prometheus metrics collection - Multiprocess support
Installation Options¶
Basic Installation¶
With Async Workers¶
# All async workers
pip install gunicorn-prometheus-exporter[async]
# Specific worker types
pip install gunicorn-prometheus-exporter[eventlet] # Eventlet workers
pip install gunicorn-prometheus-exporter[gevent] # Gevent workers
With Redis Storage¶
Development Installation¶
Complete Installation¶
From Source¶
git clone https://github.com/Agent-Hellboy/gunicorn-prometheus-exporter.git
cd gunicorn-prometheus-exporter
pip install -e ".[dev]"
Verify Installation¶
# Check package installation
pip show gunicorn-prometheus-exporter
# Test basic import
python -c "from gunicorn_prometheus_exporter import PrometheusWorker; print('Installation successful')"
Next Steps¶
- Configure Gunicorn: Set up your
gunicorn.conf.py
file - Set Environment Variables: Configure required environment variables
- Test Installation: Run a test server and verify metrics
For detailed configuration, see the Configuration Guide.