-
My goal is to expose the /metrics endpoint. |
Beta Was this translation helpful? Give feedback.
Answered by
niveditau
Feb 21, 2024
Replies: 1 comment 2 replies
-
Hi, sorry for the late response, we are not support /metrics for now, would you like to share more details so that we could better evaluate the requirements? For example, what metrics would you like to collect? I think we are talking about the serving scenario, not the flow authoring, is it correct? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No worries at all, I figured out a work around. To add Prometheus to a Flask application you need to include the prometheus-flask-exporter python package to your flow's dependencies. Then pass the instance of your flask application to PrometheusMetrics class constructor which you will import from prometheus-flask-exporter. This will expose the /metrics endpoint.