gesellix / couchdb-prometheus-exporter

CouchDB stats exporter for Prometheus
MIT License
57 stars 20 forks source link

Multiple couchdb URIs #266

Open maksimse opened 9 months ago

maksimse commented 9 months ago

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!

gesellix commented 9 months ago

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!

stvroy commented 5 months ago

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

maksimse commented 5 months ago

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