MCPcopy
hub / github.com/grafana/dskit / Register

Method Register

instrument/instrument.go:130–136  ·  view source on GitHub ↗

Register registers metrics.

()

Source from the content-addressed store, hash-verified

128
129// Register registers metrics.
130func (c *JobCollector) Register() {
131 prometheus.MustRegister(c.start)
132 prometheus.MustRegister(c.end)
133 prometheus.MustRegister(c.duration)
134 prometheus.MustRegister(c.started)
135 prometheus.MustRegister(c.completed)
136}
137
138// Before collects for the upcoming request.
139func (c *JobCollector) Before(_ context.Context, method string, start time.Time) {

Callers

nothing calls this directly

Calls 1

MustRegisterMethod · 0.80

Tested by

no test coverage detected