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

HELP / Feature Suppport Pm2 multi process

Open Oytoch opened this issue 4 years ago • 2 comments

Hi, I Use PM2, and data between process are not synced. (https://github.com/slanatech/swagger-stats/issues/29) The native dashboard (/ui or /ux) is very good, Prometheus is to big for my needs

PM2 Allow IPC, I would like to sync data between process. Maybe push data on other process every route executed. Or send All data every X time

We can get stat : getCoreStats How can we "setStat" programmatically ?

Thanks. And congrats for your work !

Oytoch avatar Mar 21 '20 18:03 Oytoch

Is there any current work around for PM2 cluster mode to get an aggregated view of swagger-stats /ui /ux endpoints? I hate when I refresh the page and I get different processes endpoint. Its nice to know the internal load balancing is working but the metrics and endpoint need to be aggregated together somehow

stavrt avatar Apr 08 '21 21:04 stavrt

It's possible for metrics: https://swaggerstats.io/guide/prometheus.html#scraping-with-multiple-pm2-processes Not yet for stats & UX

sv2 avatar Apr 09 '21 15:04 sv2