MCPcopy
hub / github.com/prometheus/client_golang / Describe

Method Describe

prometheus/registry.go:563–572  ·  prometheus/registry.go::Registry.Describe

Describe implements Collector.

(ch chan<- *Desc)

Source from the content-addressed store, hash-verified

561
562// Describe implements Collector.
563func (r *Registry) Describe(ch chan<- *Desc) {
564 r.mtx.RLock()
565 defer r.mtx.RUnlock()
566
567 // Only report the checked Collectors; unchecked collectors don't report any
568 // Desc.
569 for _, c := range r.collectorsByID {
570 c.Describe(ch)
571 }
572}
573
574// Collect implements Collector.
575func (r *Registry) Collect(ch chan<- Metric) {

Callers

nothing calls this directly

Calls 1

DescribeMethod · 0.65

Tested by

no test coverage detected