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

Method GetMetricWith

prometheus/example_metricvec_test.go:72–75  ·  view source on GitHub ↗
(labels prometheus.Labels)

Source from the content-addressed store, hash-verified

70}
71
72func (v *InfoVec) GetMetricWith(labels prometheus.Labels) (Info, error) {
73 metric, err := v.MetricVec.GetMetricWith(labels)
74 return metric.(Info), err
75}
76
77func (v *InfoVec) WithLabelValues(lvs ...string) Info {
78 i, err := v.GetMetricWithLabelValues(lvs...)

Callers 1

WithMethod · 0.95

Calls 1

GetMetricWithMethod · 0.65

Tested by

no test coverage detected