我正在尝试向Node.js PM2集群添加监控,我在prometheus中寻找聚合统计数据,然后我将在Grafana中导入 .

我已经能够配置prom-client并获得prometheus和grafana但不是pm2集群的单个进程的度量 .

我提到https://github.com/siimon/prom-client/issues/165https://github.com/siimon/prom-client/issues/80,两人都说不可能 .

还有其他办法吗?我也提到了https://github.com/redar9/pm2-cluster-prometheus但是也无法让它运转起来 .

我提到https://github.com/Unitech/pm2/issues/2035并且我能够在我的脚本中使用它并找到哪个是主服务器,哪个是从服务器 . 但不确定我是如何从那里开始的 .

任何帮助表示赞赏 .