github.com/prometheus/client_model/go.MetricFamily.GetType (method)

28 uses

	github.com/prometheus/client_model/go (current package)
		metrics.pb.go#L560: func (m *MetricFamily) GetType() MetricType {

	github.com/prometheus/client_golang/prometheus
		registry.go#L607: 		switch metricFamily.GetType() {
		registry.go#L736: 				if existingMF.GetType() != mf.GetType() {
		registry.go#L739: 						mf.GetName(), mf.GetType(), existingMF.GetType(),
		registry.go#L772: 		newType              = mf.GetType()
		registry.go#L785: 			switch existingMF.GetType() {
		registry.go#L838: 	if metricFamily.GetType() == dto.MetricType_GAUGE && dtoMetric.Gauge == nil ||
		registry.go#L839: 		metricFamily.GetType() == dto.MetricType_COUNTER && dtoMetric.Counter == nil ||
		registry.go#L840: 		metricFamily.GetType() == dto.MetricType_SUMMARY && dtoMetric.Summary == nil ||
		registry.go#L841: 		metricFamily.GetType() == dto.MetricType_HISTOGRAM && dtoMetric.Histogram == nil ||
		registry.go#L842: 		metricFamily.GetType() == dto.MetricType_UNTYPED && dtoMetric.Untyped == nil {
		registry.go#L845: 			name, dtoMetric, metricFamily.GetType(),

	github.com/prometheus/common/expfmt
		decode.go#L187: 	switch f.GetType() {
		decode.go#L199: 	return nil, fmt.Errorf("expfmt.extractSamples: unknown metric family type %v", f.GetType())
		text_create.go#L133: 	metricType := in.GetType()
		text_parse.go#L253: 	if p.currentMF.GetType() == dto.MetricType_SUMMARY || p.currentMF.GetType() == dto.MetricType_HISTOGRAM {
		text_parse.go#L291: 	if !(p.currentMF.GetType() == dto.MetricType_SUMMARY && p.currentLabelPair.GetName() == model.QuantileLabel) &&
		text_parse.go#L292: 		!(p.currentMF.GetType() == dto.MetricType_HISTOGRAM && p.currentLabelPair.GetName() == model.BucketLabel) {
		text_parse.go#L326: 	if p.currentMF.GetType() == dto.MetricType_SUMMARY {
		text_parse.go#L338: 	if p.currentMF.GetType() == dto.MetricType_HISTOGRAM {
		text_parse.go#L373: 	if p.currentMF.GetType() == dto.MetricType_SUMMARY {
		text_parse.go#L381: 	} else if p.currentMF.GetType() == dto.MetricType_HISTOGRAM {
		text_parse.go#L401: 	switch p.currentMF.GetType() {
		text_parse.go#L677: 		if p.currentMF.GetType() == dto.MetricType_SUMMARY {
		text_parse.go#L689: 		if p.currentMF.GetType() == dto.MetricType_HISTOGRAM {