litmuschaos / chaos-exporter

Prometheus Exporter for Litmus Chaos Metrics
Apache License 2.0
35 stars 46 forks source link

feat: improve kube api usage and reduce unnecessary reconciliations #155

Closed gdsoumya closed 3 days ago

gdsoumya commented 3 weeks ago

What this PR does / why we need it:

This PR changes exporter logic to use informer cache and workqueues to reduce the no. of api calls made to kube api server and also reduce unnecessary metrics are refreshes.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

Checklist: