media-io / ex_step_flow

Step flow manager for Elixir applications
MIT License
5 stars 2 forks source link

add a metric endpoint #82

Open MarcAntoine-Arnaud opened 3 years ago

MarcAntoine-Arnaud commented 3 years ago

Add a new endpoint to return metrics on the StepFlow Return:

It requires to be formatted using the prometheus format. So the idea is to provide by default the json format, and if mentioned the prometheus format.

GET /metrics -> return the json metrics GET /metrics?format=json -> return the json metrics GET /metrics?format=prometheus -> return the prometheus metrics

nipierre commented 3 years ago

Fixed by #86