-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AggregatorRegistry assumes all workers will have metrics setup #181
Comments
@zbjornson thoughts? |
Interesting situation... Re: your possible solutions:
I'll add another option:
|
I've done a quick implemention for (3) here: #182 -- not ready to merge yet but just to foster discussion. I didn't think of the ordering issues (create registry then fork vs opposite). I'll think about it. |
I'm trying to think how can this be done in a way that the consumer of the library has control over the initialisation process, so thinking a bit aloud here:
|
I've updated the PR, this is now deployed in our staging environment and seems to be ticking along nicely. If the general approach is accepted, I can write some tests covering this new option. |
Hello,
thanks for prom-client, it's a huge time saver for us!
I have run into an issue with the cluster aggregator support. It seems that unless all the workers of a node cluster are setup with prom-client, the aggregator won't work.
The issue seems to in
prom-client/lib/cluster.js
Lines 41 to 74 in bb09c6d
We have workers in our node cluster that do not import prom-client for various reasons, hence I need a way to instruct prom-client to not bother contacting them.
I'm happy to provide a PR for this, but wanted to present possible solutions first:
GET_METRICS_REQ
to all the workers, maintain a list of workers that have setup the listeners and send only to those.Thoughts?
The text was updated successfully, but these errors were encountered: