From f22aefdb167174ad472740ef648b1b3a8279013d Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Fri, 21 Feb 2020 20:03:48 +0200 Subject: [PATCH] app/vmselect/promql: log when rollupResult cache is cleared --- app/vmselect/promql/rollup_result_cache.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/vmselect/promql/rollup_result_cache.go b/app/vmselect/promql/rollup_result_cache.go index 72b1e98f7..47f1dedc6 100644 --- a/app/vmselect/promql/rollup_result_cache.go +++ b/app/vmselect/promql/rollup_result_cache.go @@ -137,6 +137,7 @@ var rollupResultCacheResets = metrics.NewCounter(`vm_cache_resets_total{type="pr func ResetRollupResultCache() { rollupResultCacheResets.Inc() rollupResultCacheV.c.Reset() + logger.Infof("rollupResult cache has been cleared") } func (rrc *rollupResultCache) Get(ec *EvalConfig, expr metricsql.Expr, window int64) (tss []*timeseries, newStart int64) {