moleculerjs/moleculer

Incorrect work of metrics in cluster mode

Open

#809 建立於 2020年9月7日

在 GitHub 查看
 (6 留言) (0 反應) (1 負責人)JavaScript (5,919 star) (588 fork)batch import
Module: Metricshelp wanted

描述

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository

Current Behavior

Metrics are returned in turn from each worker in the cluster and include data about one current worker.

Expected Behavior

It is necessary to transfer the registration of metrics to the cluster master and the workers inform the master about their metrics via IPC or AggregatorRegistry

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. enable prometheus metrics
  2. moleculer-runner -i 2
  3. check metrics

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Moleculer version: v0.14.10
  • NodeJS version: LTS
  • Operating System: linux

貢獻者指南