moleculerjs/moleculer

Incorrect work of metrics in cluster mode

Open

#809 opened on 2020年9月7日

GitHub で見る
 (6 comments) (0 reactions) (1 assignee)JavaScript (5,919 stars) (588 forks)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

コントリビューターガイド