Closed pueding closed 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.
MetricReceiver - Create a tcp socket server to receive metrics from metric collectors that might be open source collectors or something else. And then save the metrics into the data-layer(in the database).Change the way of reading metrics in Planner - Move MetricStore to data-layer and QuickJS engine loads the metricsrelated to #82