GithubHelp home page GithubHelp logo

Comments (7)

Kludex avatar Kludex commented on May 26, 2024 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.

trallnag avatar trallnag commented on May 26, 2024 3

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.

susowiki avatar susowiki commented on May 26, 2024 3

Hi, any update about this?

from prometheus-fastapi-instrumentator.

sorasful avatar sorasful commented on May 26, 2024

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.

unidesigner avatar unidesigner commented on May 26, 2024

@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.

sorasful avatar sorasful commented on May 26, 2024

@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.

trallnag avatar trallnag commented on May 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.