app/vmselect/promql: log when rollupResult cache is cleared

This commit is contained in:
Aliaksandr Valialkin 2020-02-21 20:03:48 +02:00
parent d21cb43e48
commit 2f55cabaa4

View File

@ -132,6 +132,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) {