Gitea Actions Queue Exporter
Prometheus exporter for Gitea Actions queue metrics, designed for KEDA autoscaling of Gitea Action Runners.
Features
- Prometheus Metrics: Expose queue length, running jobs, and oldest job age
- Lightweight: Python-based with minimal dependencies
- Configurable: Environment variable configuration
- Health Checks: Built-in health check endpoint
Metrics
| Metric |
Type |
Description |
gitea_actions_pending_jobs |
Gauge |
Number of pending/waiting jobs |
gitea_actions_running_jobs |
Gauge |
Number of running jobs |
gitea_actions_total_jobs |
Gauge |
Total number of jobs |
gitea_actions_queue_oldest_job_age_seconds |
Gauge |
Age of oldest pending job (seconds) |
gitea_exporter_scrape_errors_total |
Counter |
Total scrape errors |
gitea_exporter_last_scrape_timestamp |
Gauge |
Last successful scrape timestamp |
Environment Variables
| Variable |
Default |
Description |
GITEA_URL |
http://192.168.1.83:33000 |
Gitea server URL |
GITEA_TOKEN |
- |
Gitea API token (optional for public repos) |
EXPORTER_PORT |
9999 |
Exporter listening port |
SCRAPE_INTERVAL |
15 |
Metrics scrape interval (seconds) |
Build
Run Locally
Deploy to Kubernetes
Usage with KEDA
Development