MCPcopy
hub / github.com/prometheus/prometheus / register

Method register

storage/remote/queue_manager.go:335–370  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

333}
334
335func (m *queueManagerMetrics) register() {
336 if m.reg != nil {
337 m.reg.MustRegister(
338 m.samplesTotal,
339 m.exemplarsTotal,
340 m.histogramsTotal,
341 m.metadataTotal,
342 m.failedSamplesTotal,
343 m.failedExemplarsTotal,
344 m.failedHistogramsTotal,
345 m.failedMetadataTotal,
346 m.retriedSamplesTotal,
347 m.retriedExemplarsTotal,
348 m.retriedHistogramsTotal,
349 m.retriedMetadataTotal,
350 m.droppedSamplesTotal,
351 m.droppedExemplarsTotal,
352 m.droppedHistogramsTotal,
353 m.enqueueRetriesTotal,
354 m.sentBatchDuration,
355 m.highestTimestamp,
356 m.highestSentTimestamp,
357 m.pendingSamples,
358 m.pendingExemplars,
359 m.pendingHistograms,
360 m.shardCapacity,
361 m.numShards,
362 m.maxNumShards,
363 m.minNumShards,
364 m.desiredNumShards,
365 m.sentBytesTotal,
366 m.metadataBytesTotal,
367 m.maxSamplesPerSend,
368 )
369 }
370}
371
372func (m *queueManagerMetrics) unregister() {
373 if m.reg != nil {

Callers 1

StartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected