Dabz / ccloudexporter

Prometheus exporter for Confluent Cloud API metric
https://docs.confluent.io/current/cloud/metrics-api.html
87 stars 53 forks source link

Send queries asynchronously instead of synchronously #19

Closed Dabz closed 4 years ago

Dabz commented 4 years ago

All queries are sent synchronously, as the number of metric is increasing (thus the number of queries to send), the scrape duration is increasing. The exporter should execute the query asynchronously in order to reduce the scrape duration (and avoid reaching the scrape timeout...)

Dabz commented 4 years ago

Done as part of #20 (while doing refactoring, I added a goroutine to do this asynchronously).