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

scaling: allow for the submission of key/value metadata on scaling trigger #68

Closed jrasell closed 4 years ago

jrasell commented 4 years ago

Is your feature request related to a problem? Please describe. Scaling state includes details about the job, group, count, direction and which portion of the application made the request. This gives a nice overview, but lacks in certain areas particularly when using webhooks via the API.

Describe the solution you'd like. When triggering a scaling action, an optional list of key/values can be passed along with the request. These can be free form strings, which allow operators to send useful information such as the metric which caused the action, the value at the time it was triggered and even the provider. These can then be stored in the state for inspection at later dates providing a much better operator experience.