metrics

package
v0.9.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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) Disable

func (m *Metrics) Disable()

func (*Metrics) Enable

func (m *Metrics) Enable()

func (*Metrics) IsDisabled added in v0.4.13

func (m *Metrics) IsDisabled() bool

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 (m *Metrics) UpdateCancelled(job *jobdb.Job) error

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(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 (m *Metrics) UpdatePending(job *jobdb.Job) error

func (*Metrics) UpdatePreempted added in v0.4.8

func (m *Metrics) UpdatePreempted(job *jobdb.Job) error

func (*Metrics) UpdateQueued added in v0.4.13

func (m *Metrics) UpdateQueued(job *jobdb.Job) error

func (*Metrics) UpdateRunning added in v0.4.19

func (m *Metrics) UpdateRunning(job *jobdb.Job) error

func (*Metrics) UpdateSucceeded added in v0.4.13

func (m *Metrics) UpdateSucceeded(job *jobdb.Job) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL