woodpecker-ci / autoscaler

Scale your woodpecker agents automatically to the moon and back based on the current load.
Apache License 2.0
30 stars 6 forks source link

Add workflow label filters #72

Closed anbraten closed 3 months ago

anbraten commented 9 months ago

It would be helpful to restrict autoscalers to only care for workflows with specific labels. This would for example allow to start an autoscaler per architecture or specific region, ...

Related to: https://github.com/woodpecker-ci/woodpecker/issues/2803

@lerentis implemented sth like this in an alternative autoscaler using the existing endpoints: https://github.com/Lerentis/woodpecker-autoscaler/blob/main/internal/woodpecker/metrics.go#L49-L55

anbraten commented 3 months ago

implemented by #134