Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine interface { // Start starts the archiver goroutines Start() error // Cleanup cleans the archiver engine before // restart Cleanup() }
Engine defines the interface used to query a peloton component for data and then archive that data to secondary storage using message queue
type Metrics ¶
type Metrics struct { ArchiverStart tally.Counter ArchiverJobQuerySuccess tally.Counter ArchiverJobQueryFail tally.Counter ArchiverJobDeleteSuccess tally.Counter ArchiverJobDeleteFail tally.Counter ArchiverNoJobsInTimerange tally.Counter PodDeleteEventsFail tally.Counter PodDeleteEventsSuccess tally.Counter ArchiverRun tally.Counter ArchiverRunDuration tally.Timer PodDeleteEventsRun tally.Counter PodDeleteEventsRunDuration tally.Timer }
Metrics is the struct containing all the counters that track internal state of archiver engine.
func NewMetrics ¶
NewMetrics returns a new Metrics struct, with all metrics initialized and rooted at the given tally.Scope
Click to show internal directories.
Click to hide internal directories.