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

metrics: add prometheus format to metrics endpoint #100

Closed jrasell closed 4 years ago

jrasell commented 4 years ago

Is your feature request related to a problem? Please describe. Currently Sherpa does not expose a metrics endpoint which is consumable via Prometheus. Prometheus works in a pull/scrape manner and requires metrics to be formatted in a certain manner at the metrics endpoint.

Describe the solution you'd like. The metrics endpoint should be updated to allow Prometheus to successfully scrape data. The CLI should have a flag to enable this functionality, in a similar manner to the other telemetry endpoints.