couchdb-prometheus-exporter icon indicating copy to clipboard operation
couchdb-prometheus-exporter copied to clipboard

Multiple couchdb URIs

Open maksimse opened this issue 1 year ago • 3 comments

Hello, I need to query multiple CouchDB clusters. In order to do that, I need to launch as many exporters as clusters I have. Would it be enough to modify source code and make couchdbURI of type []string and then iterate over them? Is there a better approach? Thank you in advance!

maksimse avatar Dec 04 '23 13:12 maksimse

Hey, I think such an option would be valid, yet I'm not entirely sure if that wouldn't cause other issues: looking at #259 I think that in certain cases multiple instances of the exporter make sense. It always depends on the actual context (how big the clusters are, how many databases you're monitoring, how timeouts are configured). So, if you like, you can create a pull request with the option to configure multiple couchdbUris, and we can continue our discussion there? Thanks!

gesellix avatar Dec 04 '23 15:12 gesellix

@maksimse Did you manage to make it work for Multi URIs?

stvroy avatar Mar 25 '24 12:03 stvroy

@stvroy , no. We decided to run an exporter per cluster.

maksimse avatar Mar 28 '24 09:03 maksimse