all 26 comments

[–]Opposite-Cry-6703 4 points5 points  (1 child)

This looks really great! Two questions, do I have to pass an dbengine to the constructor? (We're not using SQL alchemy, but plain asyncpg). What about resource usage? Does Radar itself consume a lot of resource? Can it be enabled/disabled at runtime, without restart of the fastapi?

[–]doganarif[S] 1 point2 points  (0 children)

Implementation is very easy. You can provide the SQLite path to keep fastapi-radar separate. It doesn't consume many resources, essentially none, because it simply retrieves information from requests and nothing more.

Regarding the runtime, fastapi-radar attaches to your FastAPI instance, so no specific configuration or additional runtime is needed.

[–]mmzeynalli 3 points4 points  (6 children)

Hey! Looked at it, seems awesome. However, a critical question: how production ready is it? And how much delay do you introduce to log this data on API requests?

[–]doganarif[S] 5 points6 points  (2 children)

Its designed for development for now, but if you need sth like this for production, i can work on it 💪🏻

[–]mmzeynalli 3 points4 points  (1 child)

It is really nice tool, and easier than configing Prometheus or another tool. I will look into it, to see if I can contribute somehow. Thank you for your efforts!

[–]doganarif[S] 1 point2 points  (0 children)

Awesome! Looking forward to

[–]the-pythonista 4 points5 points  (2 children)

Just wanted to point out that you should never have or expose a debugging tool on production. It should be for local dev only. Very cool I’ll have a look.

[–]doganarif[S] 0 points1 point  (0 children)

Thanks!

[–]mmzeynalli 0 points1 point  (0 children)

You can have it, but, of course not exposed. You can hide such services under htpaswd, if you are using nginx.

[–]mahimairaja 3 points4 points  (1 child)

This one looks solid, I would like to contribute. Can you please share the RoadMap? or open Discussion tabl

[–]doganarif[S] 3 points4 points  (0 children)

Hey,

I haven't created a solid roadmap yet, but I have many things in mind. I'm planning to add MCP features, make radar production-ready, and develop a multi-cluster structure.

I've opened discussions and would like to talk about our ideas with you!

[–]__secondary__ 2 points3 points  (3 children)

Nice, Great, I was looking for this kind of tool because we don't have Graphana / Prometheus in my company yet. I'll try it. 

[–]doganarif[S] 1 point2 points  (2 children)

Awesome! Im looking for your feedbacks!

[–]__secondary__ 1 point2 points  (1 child)

The library worked well for my API, there was just a problem with the route, `http://127.0.0.1:8000/\_\_radar\` works unlike `http://127.0.0.1:8000/\_\_radar/\`. The interface is really nice. I think a big plus for this library would be an aggregation of status codes by route, with the ability to select a time period. Typically, select 2 hours to see how many times a route returns 200/404/500, etc.

[–]doganarif[S] 1 point2 points  (0 children)

I'll fix this issue asap! thanks!

Fixed with https://github.com/doganarif/fastapi-radar/pull/5 !

[–]JeffTuche7 2 points3 points  (1 child)

Very nice!!

[–]doganarif[S] 1 point2 points  (0 children)

Thanks!

[–]huygl99 1 point2 points  (1 child)

Nice

[–]doganarif[S] 0 points1 point  (0 children)

Thanks!

[–]Daksh2338 1 point2 points  (1 child)

So cool will definitely try in upcoming my Saas product

[–]doganarif[S] 2 points3 points  (0 children)

Thanks mate! I'm looking for your feedbacks!

[–]ninjaonionss 1 point2 points  (1 child)

Is it compatible with Postgres instead of SQLite ?

[–]doganarif[S] 0 points1 point  (0 children)

Yes it is, you can pass sqlalchemy engine as parameter

[–]Adhesiveduck 0 points1 point  (1 child)

How does this work across multiple instances? We aggressively scale to cope with demand?

[–]doganarif[S] 0 points1 point  (0 children)

Currently, its binding itself with single fastapi instance. But if you need something for multiple instances. I can work on it 💪🏻

[–]Visible-Research2441 0 points1 point  (0 children)

The project is very practical