I've been following your fastapi ml-monitoring repository as a template for my own project and it's been super helpful! Thanks so much for setting this up. Unfortunately, I'm experiencing a lot of trouble getting prometheus to scrape my Counter metric and latency as well. Interestingly, when I run your wine-quality application and add a Counter metric though, it seems to be working fine, but mine which pretty much follows your same approach (only difference being that I set up my application using application factory design pattern) doesn't seem to be working. It seems like histogram and summary are going through though.
Do you have any insight as to what the issue could be? Would really appreciate your guidance as I've been trying to figure this out for 3 days.
Hello @jeremyjordan,
I've been following your fastapi
ml-monitoring
repository as a template for my own project and it's been super helpful! Thanks so much for setting this up. Unfortunately, I'm experiencing a lot of trouble getting prometheus to scrape myCounter
metric and latency as well. Interestingly, when I run your wine-quality application and add aCounter
metric though, it seems to be working fine, but mine which pretty much follows your same approach (only difference being that I set up my application using application factory design pattern) doesn't seem to be working. It seems likehistogram
andsummary
are going through though.Do you have any insight as to what the issue could be? Would really appreciate your guidance as I've been trying to figure this out for 3 days.
Here is my
monitoring.py
file: https://github.com/rileyhun/fastapi-ml-example/blob/main/app/core/monitoring.pyReproducible example: