This project exposes an external metrics provider to fetch Semaphore metrics. It's built upon custom-metrics-apiserver. The metrics exposed by this server can be used when configuring a Kubernetes HorizontalPodAutoscaler to scale a Semaphore agent pool.
Check the Semaphore agent Helm chart for usage.
agents_total
agents_idle
agents_occupied
agents_occupied_percentage
jobs_total
jobs_running
jobs_queued