blakelead / couchbase_exporter

Export metrics from Couchbase Server for Prometheus consumption
Other
35 stars 18 forks source link

multiple xdcr crashes the exporter #43

Closed bennydubois closed 4 years ago

bennydubois commented 5 years ago

exporter version 0.9.0 couchbase version 5.0.1-5003 (community)

Issue: setting up a couchbase cluster to replicate to 2 datacenters (each with a distinct cluster id and name) throws the exporter in a strange loop. After a few prometheus scrape it uses over 1030 file descriptors and errors out with this for every xdcr metrics.

  • collected metric "cb_xdcr_error_count" { label:<name:"destination_bucket" value:"XXXXX" > label:<name:"remote_cluster_id" value:"YYYY" > label:<name:"remote_cluster_name" value:"backup" > label:<name:"source_bucket" value:"ZZZZ" > gauge: } was collected before with the same name and label values
blakelead commented 4 years ago

Hello @bennydubois,

Thank you for reporting this. I wanted to rework the XDCR part for some time, now I have to :)

I'll do my best to work on this issue next weekend.

blakelead commented 4 years ago

@bennydubois it is fixed in 0.9.5.

bennydubois commented 4 years ago

I rolled it out and it works perfectly, many thanks!