Git Product home page Git Product logo

Comments (5)

sv2 avatar sv2 commented on May 29, 2024 3

Thank you, @ofeka !

You are absolutely right, and yes, I am currently working on addressing this. My plan is to add the following:

  1. Expose Prometheus metrics
    This would enable using Prometheus to collect metrics from multiple app nodes, storing them in Prometheus db, and then aggregate and query over time, and set up alerts. And using Grafana to visualize, set up dashboards.
    This is well underway - latest code already provides metrics via /swagger-stats/metrics API endpoint.
    so I expect this to be included it in the next npm release shortly.
    Tracking in #9

  2. Support storing detailed record about each request / response in Elasticsearch.
    The data you can currently see in last errors details, or longest request details, will be stored in Elasticsearch, one document per each request/response, including hostname/node name. With this, it would be possible to use Elasticsearch to aggregate and analyze API usage across app nodes and over time with great level of details, and use Kibana to visualize.

Overall, my thinking is to address all of these 3 levels of monitoring:

  1. Out-of-the box telemetry - enabling swagger-stats allows to start monitoring on individual nodes right away, with no infrastructure requirements.
  2. Prometheus metrics and Grafana dashboards - enables monitoring and alerting over time and over multiple nodes / microservices
  3. Storing API request/response records in Elasticearch - enables detailed analytics on API telemetry

Would appreciate your feedback !

from swagger-stats.

ofek-a avatar ofek-a commented on May 29, 2024

All this sounds really great, couldn't agree more.

from swagger-stats.

sv2 avatar sv2 commented on May 29, 2024

this will be addressed by:
#9
#12

from swagger-stats.

sv2 avatar sv2 commented on May 29, 2024

#12 addressed in v0.95.0

from swagger-stats.

dduo518 avatar dduo518 commented on May 29, 2024

good

from swagger-stats.

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.