@@ -43,31 +43,31 @@ func NewAggregator(store Store, cachePusher cache.CachePusher, key schema.AMKey,
43
43
case conf .Avg :
44
44
if aggregator .sumMetric == nil {
45
45
key .Archive = schema .NewArchive (schema .Sum , span )
46
- aggregator .sumMetric = NewAggMetric (store , cachePusher , key , conf.Retentions {ret }, 0 , 0 , nil , dropFirstChunk )
46
+ aggregator .sumMetric = NewAggMetric (store , cachePusher , key , conf.Retentions {ret }, 0 , span , nil , dropFirstChunk )
47
47
}
48
48
if aggregator .cntMetric == nil {
49
49
key .Archive = schema .NewArchive (schema .Cnt , span )
50
- aggregator .cntMetric = NewAggMetric (store , cachePusher , key , conf.Retentions {ret }, 0 , 0 , nil , dropFirstChunk )
50
+ aggregator .cntMetric = NewAggMetric (store , cachePusher , key , conf.Retentions {ret }, 0 , span , nil , dropFirstChunk )
51
51
}
52
52
case conf .Sum :
53
53
if aggregator .sumMetric == nil {
54
54
key .Archive = schema .NewArchive (schema .Sum , span )
55
- aggregator .sumMetric = NewAggMetric (store , cachePusher , key , conf.Retentions {ret }, 0 , 0 , nil , dropFirstChunk )
55
+ aggregator .sumMetric = NewAggMetric (store , cachePusher , key , conf.Retentions {ret }, 0 , span , nil , dropFirstChunk )
56
56
}
57
57
case conf .Lst :
58
58
if aggregator .lstMetric == nil {
59
59
key .Archive = schema .NewArchive (schema .Lst , span )
60
- aggregator .lstMetric = NewAggMetric (store , cachePusher , key , conf.Retentions {ret }, 0 , 0 , nil , dropFirstChunk )
60
+ aggregator .lstMetric = NewAggMetric (store , cachePusher , key , conf.Retentions {ret }, 0 , span , nil , dropFirstChunk )
61
61
}
62
62
case conf .Max :
63
63
if aggregator .maxMetric == nil {
64
64
key .Archive = schema .NewArchive (schema .Max , span )
65
- aggregator .maxMetric = NewAggMetric (store , cachePusher , key , conf.Retentions {ret }, 0 , 0 , nil , dropFirstChunk )
65
+ aggregator .maxMetric = NewAggMetric (store , cachePusher , key , conf.Retentions {ret }, 0 , span , nil , dropFirstChunk )
66
66
}
67
67
case conf .Min :
68
68
if aggregator .minMetric == nil {
69
69
key .Archive = schema .NewArchive (schema .Min , span )
70
- aggregator .minMetric = NewAggMetric (store , cachePusher , key , conf.Retentions {ret }, 0 , 0 , nil , dropFirstChunk )
70
+ aggregator .minMetric = NewAggMetric (store , cachePusher , key , conf.Retentions {ret }, 0 , span , nil , dropFirstChunk )
71
71
}
72
72
}
73
73
}
0 commit comments