STCLab-Inc / wave-autoscale

Unified autoscaling & traffic management for clouds and kubernetes
https://waveautoscale.com
Apache License 2.0
30 stars 2 forks source link

Restructure metric adapter(metric collector with open source collectors) #81

Closed pueding closed 1 year ago

pueding commented 1 year ago

related to #82

pueding commented 1 year ago

After transitioning from memory-based metrics to a database-based approach in WaveMetrics, wave-autoscale(controller) requires an alternative method to retrieve metrics. To facilitate this change, I removed the 'MetricAdapter', which was responsible for storing metrics in memory. instead, I introduced the 'MetricUpdater', which leverages the data-layer to fetch metrics directly from the database. This allow wave-autoscale to seamlessly access metrics using the new database-based solution.