Skip to content

I am trying to add Prometheus client to my prompt flow, is there a recommended way how to do that? #2021

Answered by niveditau
niveditau asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@niveditau
Comment options

Answer selected by brynn-code
@wxpjimmy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants