github.com/prometheus/client_model/go.MetricType.Enum (method)
8 uses
github.com/prometheus/client_model/go (current package)
metrics.pb.go#L46: func (x MetricType) Enum() *MetricType {
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()
github.com/prometheus/common/expfmt
text_parse.go#L233: p.currentMF.Type = dto.MetricType_UNTYPED.Enum()
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. |