MCPcopy
hub / github.com/prometheus/prometheus / Commit

Method Commit

storage/interface_append.go:198–198  ·  view source on GitHub ↗

Commit submits the collected samples and purges the batch. If Commit returns a non-nil error, it also rolls back all modifications made in the appender so far, as Rollback would do. In any case, an Appender must not be used anymore after Commit has been called.

()

Source from the content-addressed store, hash-verified

196 // the appender so far, as Rollback would do. In any case, an Appender
197 // must not be used anymore after Commit has been called.
198 Commit() error
199
200 // Rollback rolls back all modifications made in the appender so far.
201 // Appender has to be discarded after rollback.

Callers 15

CommitMethod · 0.65
CommitMethod · 0.65
TestFanout_SelectSortedFunction · 0.65
TestFanoutAppenderFunction · 0.65
TestFanoutAppenderV2Function · 0.65
ConsumeMetricsMethod · 0.65
writeMethod · 0.65
writeV2Method · 0.65
TestFromMetricsFunction · 0.65

Implementers 13

initAppenderV2tsdb/head_append_v2.go
initAppendertsdb/head_append.go
headAppenderBasetsdb/head_append.go
appenderV2tsdb/agent/db_append_v2.go
appendertsdb/agent/db.go
fanoutAppenderstorage/fanout.go
fanoutAppenderV2storage/fanout.go
mockAppendablestorage/remote/write_handler_test.go
baseTimestampTrackerstorage/remote/write.go
noOpAppenderstorage/remote/otlptranslator/promethe
notReadyAppendercmd/prometheus/main.go
notReadyAppenderV2cmd/prometheus/main.go

Calls

no outgoing calls