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) Update(ctx *armadacontext.Context, jst jobdb.JobStateTransitions, ...) error
- func (m *Metrics) UpdateMany(ctx *armadacontext.Context, jsts []jobdb.JobStateTransitions, ...) 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) Update ¶
func (m *Metrics) Update( ctx *armadacontext.Context, jst jobdb.JobStateTransitions, jobRunErrorsByRunId map[uuid.UUID]*armadaevents.Error, ) error
func (*Metrics) UpdateMany ¶
func (m *Metrics) UpdateMany( ctx *armadacontext.Context, jsts []jobdb.JobStateTransitions, jobRunErrorsByRunId map[uuid.UUID]*armadaevents.Error, ) error
Click to show internal directories.
Click to hide internal directories.