Can I send metrics to existing web server, instead of starting separate server (start_http_server) #884
29swastik
announced in
Announcements
Replies: 2 comments
|
It seems that some prometheus exporters exists for Starlette based apps (such as FastAPI) like https://github.com/stephenhillier/starlette_exporter But I'm also wondering if the official prometheus python client could provide an exporter instead of starting a distinct http server 🙏 |
0 replies
|
This can be accomplished in a handful of ways. Internally we also use |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've a python file running KafkaConsumer in infinite loop, there I want to increment prometheus counter whenever there is a failure while processing the consumed kafka message.
Here I don't want run
start_http_serverbecause I already have one fastapi server running and I want to send my counter metric to that fastapi server instead of running separatestart_http_server, how can I do that?All reactions