github.com/prometheus/client_model/go.Metric.Counter (field)
11 uses
github.com/prometheus/client_model/go (current package)
metrics.pb.go#L429: Counter *Counter `protobuf:"bytes,3,opt,name=counter" json:"counter,omitempty"`
metrics.pb.go#L479: return m.Counter
github.com/prometheus/client_golang/prometheus
registry.go#L609: if dtoMetric.Counter == nil {
registry.go#L654: case dtoMetric.Counter != nil:
registry.go#L839: metricFamily.GetType() == dto.MetricType_COUNTER && dtoMetric.Counter == nil ||
value.go#L131: m.Counter = &dto.Counter{Value: proto.Float64(v)}
github.com/prometheus/common/expfmt
decode.go#L206: if m.Counter == nil {
decode.go#L218: Value: model.SampleValue(m.Counter.GetValue()),
text_create.go#L157: if metric.Counter == nil {
text_create.go#L164: metric.Counter.GetValue(),
text_parse.go#L403: p.currentMetric.Counter = &dto.Counter{Value: proto.Float64(value)}
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |