Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IncompletePulsesQueue = prometheus.NewGauge(prometheus.GaugeOpts{ Name: "gbe_controller_data_queue", Help: "The number of pulses in controller's incomplete pulses queue", }) CurrentSeqPulse = prometheus.NewGauge(prometheus.GaugeOpts{ Name: "gbe_controller_current_seq_pulse", Help: "Current sequentual pulse rerequested from platform", }) PulseCompleteCounter = prometheus.NewCounter(prometheus.CounterOpts{ Name: "gbe_controller_pulse_complete_counter", Help: "How many pulses is completed by 'pulseIsComplete' check", }) PulseNotCompleteCounter = prometheus.NewCounter(prometheus.CounterOpts{ Name: "gbe_controller_pulse_not_complete_counter", Help: "How many pulses is not completed by 'pulseIsComplete' check", }) )
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller checks pulses completeness and sends signal to reload missing data from platform
func NewController ¶
func NewController(cfg configuration.Controller, extractor interfaces.JetDropsExtractor, storage interfaces.Storage, pv int) (*Controller, error)
NewController returns implementation of interfaces.Controller
func (*Controller) SetJetDropData ¶
func (c *Controller) SetJetDropData(pulse types.Pulse, jetID string)
SetJetDropData stores jetID, processed at specific pulse
type Metrics ¶
type Metrics struct{}
func (Metrics) Metrics ¶
func (s Metrics) Metrics(p *metrics.Prometheus) []prometheus.Collector
type MissedDataManager ¶
type MissedDataManager struct {
// contains filtered or unexported fields
}
MissedDataManager manages working with missed data pool It's thread safe
func NewMissedDataManager ¶
func NewMissedDataManager(ttl time.Duration, cleanPeriod time.Duration) *MissedDataManager
NewMissedDataManager creates new missed data manager with custom params
func (*MissedDataManager) Add ¶
func (mdm *MissedDataManager) Add(ctx context.Context, fromPulse, toPulse int64) bool
Add adds missed data to pool
func (*MissedDataManager) Start ¶
func (mdm *MissedDataManager) Start()
func (*MissedDataManager) Stop ¶
func (mdm *MissedDataManager) Stop()
Click to show internal directories.
Click to hide internal directories.