Skip to content

Commit d85178b

Browse files
paivagustavolizthegrey
authored andcommitted
use stateful batcher on prometheus exporter (#428)
1 parent ea67a56 commit d85178b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exporter/metric/prometheus/prometheus.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func NewExportPipeline(config Config) (*push.Controller, http.HandlerFunc, error
150150
// it could try again on the next scrape and no data would be lost, only resolution.
151151
//
152152
// Gauges (or LastValues) and Summaries are an exception to this and have different behaviors.
153-
batcher := defaultkeys.New(selector, sdkmetric.NewDefaultLabelEncoder(), false)
153+
batcher := defaultkeys.New(selector, sdkmetric.NewDefaultLabelEncoder(), true)
154154
pusher := push.New(batcher, exporter, time.Second)
155155
pusher.Start()
156156

0 commit comments

Comments
 (0)