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

Method Describe

prometheus/go_collector_latest.go:295–303  ·  view source on GitHub ↗

Describe returns all descriptions of the collector.

(ch chan<- *Desc)

Source from the content-addressed store, hash-verified

293
294// Describe returns all descriptions of the collector.
295func (c *goCollector) Describe(ch chan<- *Desc) {
296 c.base.Describe(ch)
297 for _, i := range c.msMetrics {
298 ch <- i.desc
299 }
300 for _, m := range c.rmExposedMetrics {
301 ch <- m.Desc()
302 }
303}
304
305// Collect returns the current state of all metrics of the collector.
306func (c *goCollector) Collect(ch chan<- Metric) {

Callers

nothing calls this directly

Calls 2

DescribeMethod · 0.65
DescMethod · 0.65

Tested by

no test coverage detected