fastly / fastly-exporter

A Prometheus exporter for the Fastly Real-time Analytics API
Apache License 2.0
99 stars 36 forks source link

Refactor metrics processing #169

Closed mikelorant closed 5 months ago

mikelorant commented 6 months ago

Setting metrics was tightly coupled with the gathering of the data. This made it difficult to change the logic without a significant amount of code changes.

By splitting the setting of the metrics into its own function, we can change the high level logic without having to move hundreds of lines around.

mikelorant commented 6 months ago

@leklund Splitting out the Process refactor as its own pull request as this doesn't need to part of the aggregated datacenter changes.