swagger-stats
swagger-stats copied to clipboard
Different data shown each time
Hi
I am using Kubernetes/PM2 with my express server - 2 processes running in PM2 cluster mode per pod & 2 replicas for k8s (so 4 processes in total I guess)
I see different data everytime I refresh the UI, is there a way to aggregate the traffic data into a single source?
Hi ! Embedded telemetry UI shows data from individual node only. To aggregate data If you run multiple nodes, you can enable storing metrics to ElasticSearch and/or Prometheus. Then you could use Kibana dashboards to see aggregated stats with, and with Prometheus you could use Grafana to create dashboards.
Hi @sv2!
I use too a distributed system on k8s with replicas, so I will use swagger-stats with Prometheus and Grafana and therefore will not use the integrated dashboard. In these cases, there are some "lite" version of the package without all frontend functionality to reduce size of dependencies and memory footprint?
Thanks!
Makes sense, will make UI optional dependency. Thanks!