Documentation ¶
Index ¶
- type Metrics
- func (m *Metrics) Collect(ch chan<- prometheus.Metric)
- func (m *Metrics) Describe(ch chan<- *prometheus.Desc)
- func (m *Metrics) Disable()
- func (m *Metrics) Enable()
- func (m *Metrics) IsDisabled() bool
- func (m *Metrics) Update(ctx *armadacontext.Context, jst jobdb.JobStateTransitions, ...) error
- func (m *Metrics) UpdateCancelled(job *jobdb.Job) error
- func (m *Metrics) UpdateFailed(ctx *armadacontext.Context, job *jobdb.Job, ...) error
- func (m *Metrics) UpdateLeased(job *jobdb.Job, jctx *schedulercontext.JobSchedulingContext) error
- func (m *Metrics) UpdateMany(ctx *armadacontext.Context, jsts []jobdb.JobStateTransitions, ...) error
- func (m *Metrics) UpdatePending(job *jobdb.Job) error
- func (m *Metrics) UpdatePreempted(job *jobdb.Job, jctx *schedulercontext.JobSchedulingContext) error
- func (m *Metrics) UpdateQueued(job *jobdb.Job) error
- func (m *Metrics) UpdateRunning(job *jobdb.Job) error
- func (m *Metrics) UpdateSucceeded(job *jobdb.Job) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func New ¶
func New(config configuration.MetricsConfig) (*Metrics, error)
func (*Metrics) Collect ¶
func (m *Metrics) Collect(ch chan<- prometheus.Metric)
Collect and then reset all metrics. Resetting ensures we do not build up a large number of counters over time.
func (*Metrics) Describe ¶
func (m *Metrics) Describe(ch chan<- *prometheus.Desc)
func (*Metrics) IsDisabled ¶ added in v0.4.13
func (*Metrics) Update ¶
func (m *Metrics) Update( ctx *armadacontext.Context, jst jobdb.JobStateTransitions, jobRunErrorsByRunId map[uuid.UUID]*armadaevents.Error, ) error
func (*Metrics) UpdateCancelled ¶ added in v0.4.13
func (*Metrics) UpdateFailed ¶ added in v0.4.13
func (m *Metrics) UpdateFailed(ctx *armadacontext.Context, job *jobdb.Job, jobRunErrorsByRunId map[uuid.UUID]*armadaevents.Error) error
func (*Metrics) UpdateLeased ¶ added in v0.4.13
func (m *Metrics) UpdateLeased(job *jobdb.Job, jctx *schedulercontext.JobSchedulingContext) error
func (*Metrics) UpdateMany ¶
func (m *Metrics) UpdateMany( ctx *armadacontext.Context, jsts []jobdb.JobStateTransitions, jobRunErrorsByRunId map[uuid.UUID]*armadaevents.Error, ) error
func (*Metrics) UpdatePending ¶ added in v0.4.19
func (*Metrics) UpdatePreempted ¶ added in v0.4.8
func (m *Metrics) UpdatePreempted(job *jobdb.Job, jctx *schedulercontext.JobSchedulingContext) error
func (*Metrics) UpdateQueued ¶ added in v0.4.13
func (*Metrics) UpdateRunning ¶ added in v0.4.19
Click to show internal directories.
Click to hide internal directories.