Dabz / ccloudexporter

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

fetching topic with sent bytes equal to nill #66

Closed Basma1912 closed 3 years ago

Basma1912 commented 3 years ago

Some of the topics on ccloud are listed with the production and consumption as null .. these are not fetched.. how can we fetch these as well?

Dabz commented 3 years ago

Hi! The Metrics API does not return the "read" and "write" metrics if there is no activity on a topic. You could rely on the list of topics returns by the "retained_bytes" metrics to identify which points are lacking and replace them with a "0" :thinking: .