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 https://github.com/siimon/prom-client/blob/bb09c6dea7941f54aa7a62fcfa5f052af9d00d5a/lib/cluster.js#L41-L74
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:
- Instead of rejecting the promise when a timeout happens, silently ignore the timeout.
- Same as (1) but report non-responsive workers as a separate metric for monitoring.
- Instead of sending the
GET_METRICS_REQ to all the workers, maintain a list of workers that have setup the listeners and send only to those.
Thoughts?
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 https://github.com/siimon/prom-client/blob/bb09c6dea7941f54aa7a62fcfa5f052af9d00d5a/lib/cluster.js#L41-L74
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_REQto all the workers, maintain a list of workers that have setup the listeners and send only to those.Thoughts?