Comments (7)
@trallnag I'm still working on it, but this may be useful just as an example https://github.com/Kludex/fastapi-prometheus-grafana
from prometheus-fastapi-instrumentator.
Yeah I think something like this would be helpful for starting off. Similar to https://github.com/rycus86/prometheus_flask_exporter
But it's almost impossible in my opinion to find a dashboard that suits everyone. Do you only have a single application you are monitoring? Or dozens of services running in a Kubernetes cluster? A lot of variables here that require (vastly) different dashboards or at least changes to the used labels etc. I'll see when I get around to create / upload a show case, thanks for raising the idea
from prometheus-fastapi-instrumentator.
Hi, any update about this?
from prometheus-fastapi-instrumentator.
Hey @Kludex !
Just wanted to know if you had found any good resources that one could use to get easy dashboards for a fastapi app, this would be so cool ! Thanks !
from prometheus-fastapi-instrumentator.
@sorasful Have you been successful in finding a solution. The repo from @Kludex is very useful for the configured dashboard for the variables that are exposed via the /metrics
endpoint. However I am stuck with how to define the proper data source in Grafana (the Promotheus data source refers to the server, not the output of this plugin. I wonder if the path is to implement a custom Grafana data source via plugin to fetch and parse the relevant data, but I think there should be another way, so I'd like to ask first here.
from prometheus-fastapi-instrumentator.
@unidesigner Not really, I need to get more resources on how PromQL works and stuff. If I manage to get something nice for these dashboard I think I'll make a PR so this can goes into an "example" section for example.
from prometheus-fastapi-instrumentator.
@susowiki it's not on my todo list. In my personal projects and at work I have not been using this package in a long time due to working with other programming languages. So when it comes to prometheus-fastapi-instrumentator I really only find the motivation every few months to streamline and merge open PRs, fix small bugs, update dependencies, etc.
from prometheus-fastapi-instrumentator.
Related Issues (20)
- Inprogress requests causes duplicated prometheus timeseries error
- labels on highr bucket default metrics
- Having metrics values even with no endpoints activity HOT 1
- Not full metrics list HOT 1
- FastAPI app with many routers HOT 3
- Instrumentator middleware includes BackgroundTask duration in http request latency metrics
- How to properly initialize modified_status when throwing exception
- Default metrics are gone when adding a custom instrumentation HOT 3
- Allow for custom dynamic labels on default metrics HOT 1
- Remove FastAPI in favor of Starlette HOT 3
- Upgrade fastapi version to support >100.0 HOT 5
- Metrics disappear when setting PROMETHEUS_MULTIPROC_DIR HOT 1
- Security Concern HOT 3
- Inprogress metrics ignore namespace and subsystem
- Setting the `PROMETHEUS_MULTIPROC_DIR` is not mentioned in the docs
- Instrument latency without streaming duration HOT 1
- FastAPI ^0.110 and on_event HOT 2
- Incorrect http_requests_total with multiple Middleware HOT 1
- trio / anyio support
- [TypeError("'ObjectId' object is not iterable"), TypeError('vars() argument must have __dict__ attribute')] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus-fastapi-instrumentator.