github.com/prometheus/client_model/go.MetricFamily.Type (field)
14 uses
github.com/prometheus/client_model/go (current package)
metrics.pb.go#L515: Type *MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type,omitempty"`
metrics.pb.go#L561: if m != nil && m.Type != nil {
metrics.pb.go#L562: return *m.Type
github.com/prometheus/client_golang/prometheus
registry.go#L653: metricFamily.Type = dto.MetricType_GAUGE.Enum()
registry.go#L655: metricFamily.Type = dto.MetricType_COUNTER.Enum()
registry.go#L657: metricFamily.Type = dto.MetricType_SUMMARY.Enum()
registry.go#L659: metricFamily.Type = dto.MetricType_UNTYPED.Enum()
registry.go#L661: metricFamily.Type = dto.MetricType_HISTOGRAM.Enum()
registry.go#L747: existingMF.Type = mf.Type
github.com/prometheus/common/expfmt
text_parse.go#L232: if p.currentMF.Type == nil {
text_parse.go#L233: p.currentMF.Type = dto.MetricType_UNTYPED.Enum()
text_parse.go#L499: if p.currentMF.Type != nil {
text_parse.go#L512: p.currentMF.Type = dto.MetricType(metricType).Enum()
![]() |
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. |