slanatech / swagger-stats

API Observability. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices.
https://swaggerstats.io/
MIT License
888 stars 136 forks source link

Support for using prometheus `read` endpoint as datasource for the default (`swagger-stats/#/`) dashboards #203

Open stagefright5 opened 1 year ago

stagefright5 commented 1 year ago

As per my understanding the built in dashboard for swagger stats currently supports only in memory stored data. Is it possible to set up prometheus read endpoint as the datasource for the dashboard UI (like elastic search).

sv2 commented 1 year ago

It's possible, however it would make Prometheus a mandatory dependency - as a data source for built-in dashboards. Being able to see built-in dashboard without any dependencies is valuable, in my opinion I would open this suggestion for voting for now - let me know what's preferred please

stagefright5 commented 1 year ago

Hi. Thanks for the reply. I think an Adapter like system would help. Swagger stats can have pluggable adapters like: