swagger-stats icon indicating copy to clipboard operation
swagger-stats copied to clipboard

Different data shown each time

Open minotaurrr opened this issue 7 years ago • 3 comments
trafficstars

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?

minotaurrr avatar Oct 18 '18 02:10 minotaurrr

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.

sv2 avatar Oct 20 '18 18:10 sv2

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!

jnm733 avatar May 25 '23 06:05 jnm733

Makes sense, will make UI optional dependency. Thanks!

sv2 avatar May 26 '23 01:05 sv2