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

Struct InfoVec

prometheus/example_metricvec_test.go:51–53  ·  prometheus/example_metricvec_test.go::InfoVec

InfoVec is the vector version for Info. As an info metric never changes, we wouldn't really need to wrap GetMetricWithLabelValues and GetMetricWith because Info has no additional methods compared to the vanilla Metric that the unwrapped MetricVec methods return. However, to demonstrate all there is

Source from the content-addressed store, hash-verified

49// to do to fully implement a vector for a custom Metric implementation, we do
50// it in this example anyway.
51type InfoVec struct {
52 *prometheus.MetricVec
53}
54
55func NewInfoVec(name, help string, labelNames []string) *InfoVec {
56 desc := prometheus.NewDesc(name, help, labelNames, nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected