diff --git a/internal/util/metricsinfo/cache.go b/internal/util/metricsinfo/cache.go index 17ee460d16..d8a14abd0e 100644 --- a/internal/util/metricsinfo/cache.go +++ b/internal/util/metricsinfo/cache.go @@ -86,6 +86,7 @@ func (manager *MetricsCacheManager) IsSystemInfoMetricsValid() bool { (time.Since(manager.systemInfoMetricsLastUpdatedTime) < retention) } +// GetSystemInfoMetrics returns the cached system information metrics. func (manager *MetricsCacheManager) GetSystemInfoMetrics() (*milvuspb.GetMetricsResponse, error) { retention := manager.GetRetention()