Fastapi: Any recommended way to do some stats / monitor?

Created on 3 Aug 2020  路  6Comments  路  Source: tiangolo/fastapi

Hi :)

Currently we have already started an app with fastapi. It looks really good.
Is there a recommended way to do some stats (e.g.: google stats) / monitor (e.g.: prometheus ) about all the requests which we have already received?

Thanks

question

All 6 comments

Where do you deploy it?

Most cloud providers provide some monitoring features which for most people is good enough

This is what i have on GCP:
Screenshot 2020-08-03 at 13 18 25
Screenshot 2020-08-03 at 13 18 13

@ArcLightSlavik
That's what I am looking for. Looks great but we deploy on our private team env without some dashboards like this.
Ok I think this feature should not bind to fastapi itself.
Thanks

I'm going to shamelessly suggest my blog post on the topic of fastapi monitoring 馃槇
hopefully you find it interesting

I'm going to shamelessly suggest my blog post on the topic of fastapi monitoring 馃槇
hopefully you find it interesting

Thanks for your blog and it's helpful :)
But recently I am looking for some private ways so unfortunately we can not use something like datadog
.

@louisguitton Looks quite nice, could you make a pull request to add to the list of articles? Would be similar to #2280

But recently I am looking for some private ways so unfortunately we can not use something like datadog.

If you're looking for open source solutions, Jaeger is great. the issue is that you won't have a data pipeline to aggregate your traces.
From https://www.jaegertracing.io/roadmap/ :

Data Pipeline
Post-collection data pipeline for trace aggregation and data mining based on Apache Flink

I'm watching this repo for releases https://github.com/jaegertracing/jaeger-analytics-flink

Was this page helpful?
0 / 5 - 0 ratings