jrasell / sherpa

Sherpa is a highly available, fast, and flexible horizontal job scaling for HashiCorp Nomad. It is capable of running in a number of different modes to suit different requirements, and can scale based on Nomad resource metrics or external sources.
Mozilla Public License 2.0
163 stars 8 forks source link

Add Prometheus provider for external metrics check during autoscaling #104

Closed jrasell closed 4 years ago

jrasell commented 4 years ago

A scaling policy can now contain external checks which pull a metric value from an external provider and evaluate this agains the threshold configured. If the threshold is broken, the configured action will be requested.

The change also makes the Nomad resource calculation checks optional when running the autoscaler, allowing user to only use external checks if they wish or a combination. The autoscaler does a number of decision steps, in order to make sure both Nomad and external check evaluations are taken into account before requesting action.

closes #102