Documentation
¶
Index ¶
- type QueueMonitor
- type QueueMonitorConfig
- type QueueStatsStore
- type Service
- func (s *Service) Handler() http.Handler
- func (s *Service) Middleware(next http.Handler) http.Handler
- func (s *Service) ObserveBackgroundJob(worker, outcome string, duration time.Duration)
- func (s *Service) ObserveBackgroundPoll(worker, result string, duration time.Duration)
- func (s *Service) ObserveEmailQueueAge(outcome string, age time.Duration)
- func (s *Service) ObserveMaintenanceLease(outcome string)
- func (s *Service) ObserveMaintenanceRun(job, outcome string, duration time.Duration, rows int64)
- func (s *Service) ObserveQueueReaper(queue, result string, duration time.Duration, retried, failed int64)
- func (s *Service) ObserveQueueSnapshot(queue, result string, stats store.QueueStats, now time.Time)
- func (s *Service) ObserveReadinessCheck(dependency, result string)
- func (s *Service) ObserveReadinessCheckDuration(dependency, result string, duration time.Duration)
- func (s *Service) ObserveRuntimeSettingsReconciliation(result string, duration time.Duration, revision int64)
- func (s *Service) RegisterDatabase(db *sql.DB, name string) error
- func (s *Service) Registerer() prometheus.Registerer
- func (s *Service) SetMaintenanceLeader(leader bool)
- func (s *Service) SetReadiness(ready bool)
- func (s *Service) SetRuntimeSettingsRevision(revision int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueueMonitor ¶ added in v0.22.0
type QueueMonitor struct {
// contains filtered or unexported fields
}
func NewQueueMonitor ¶ added in v0.22.0
func NewQueueMonitor(store QueueStatsStore, metrics *Service, logger *slog.Logger, cfg QueueMonitorConfig) (*QueueMonitor, error)
func (*QueueMonitor) Done ¶ added in v0.22.0
func (m *QueueMonitor) Done() <-chan struct{}
func (*QueueMonitor) Run ¶ added in v0.22.0
func (m *QueueMonitor) Run(ctx context.Context)
type QueueMonitorConfig ¶ added in v0.22.0
type QueueStatsStore ¶ added in v0.22.0
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ObserveBackgroundJob ¶
ObserveBackgroundJob records the result and processing time of an asynchronous job.
func (*Service) ObserveBackgroundPoll ¶ added in v0.22.0
func (*Service) ObserveEmailQueueAge ¶ added in v0.22.0
func (*Service) ObserveMaintenanceLease ¶ added in v0.22.0
func (*Service) ObserveMaintenanceRun ¶ added in v0.22.0
func (*Service) ObserveQueueReaper ¶ added in v0.22.0
func (*Service) ObserveQueueSnapshot ¶ added in v0.22.0
func (*Service) ObserveReadinessCheck ¶ added in v0.22.0
func (*Service) ObserveReadinessCheckDuration ¶ added in v0.22.0
func (*Service) ObserveRuntimeSettingsReconciliation ¶ added in v0.22.0
func (*Service) RegisterDatabase ¶
RegisterDatabase exposes database/sql pool saturation and connection churn.
func (*Service) Registerer ¶
func (s *Service) Registerer() prometheus.Registerer
Registerer allows application modules to register additional collectors without relying on Prometheus's global registry.
func (*Service) SetMaintenanceLeader ¶ added in v0.22.0
func (*Service) SetReadiness ¶ added in v0.22.0
func (*Service) SetRuntimeSettingsRevision ¶ added in v0.22.0
Click to show internal directories.
Click to hide internal directories.