package io_prometheus_client
Import Path
github.com/prometheus/client_model/go (on go.dev )
Dependency Relation
imports 3 packages , and imported by 4 packages
Package-Level Type Names (total 11, all are exported)
/* sort exporteds by: alphabet | popularity */
type LabelPair (struct)
Fields (total 5, all are exported )
Name *string
Value *string
XXX_NoUnkeyedLiteral struct{}
XXX_sizecache int32
XXX_unrecognized []byte
Methods (total 11, all are exported )
(*T) Descriptor () ([]byte , []int )
(*T) GetName () string
(*T) GetValue () string
(*T) ProtoMessage ()
(*T) Reset ()
(*T) String () string
(*T) XXX_DiscardUnknown ()
(*T) XXX_Marshal (b []byte , deterministic bool ) ([]byte , error )
(*T) XXX_Merge (src proto .Message )
(*T) XXX_Size () int
(*T) XXX_Unmarshal (b []byte ) error
Implements (at least 6, in which 3 are exported )
*T : expvar.Var
*T : fmt.Stringer
*T : google.golang.org/protobuf/runtime/protoiface.MessageV1
/* 3+ unexporteds ... */ /* 3+ unexporteds: */
*T : context.stringer
*T : google.golang.org/protobuf/internal/impl.messageV1
*T : runtime.stringer
As Outputs Of (at least 2, in which 1 are exported )
func (*Metric ).GetLabel () []*LabelPair
/* at least one unexported ... */ /* at least one unexported: */
func github.com/prometheus/client_golang/prometheus.makeLabelPairs (desc *prometheus .Desc , labelValues []string ) []*LabelPair
As Inputs Of (at least 2, neither is exported )
/* 2+ unexporteds ... */ /* 2+ unexporteds: */
func github.com/prometheus/client_golang/prometheus.populateMetric (t prometheus .ValueType , v float64 , labelPairs []*LabelPair , m *Metric ) error
func github.com/prometheus/common/expfmt.writeLabelPairs (w expfmt .enhancedWriter , in []*LabelPair , additionalLabelName string , additionalLabelValue float64 ) (int , error )
type Metric (struct)
Fields (total 10, all are exported )
Counter *Counter
Gauge *Gauge
Histogram *Histogram
Label []*LabelPair
Summary *Summary
TimestampMs *int64
Untyped *Untyped
XXX_NoUnkeyedLiteral struct{}
XXX_sizecache int32
XXX_unrecognized []byte
Methods (total 16, all are exported )
(*T) Descriptor () ([]byte , []int )
(*T) GetCounter () *Counter
(*T) GetGauge () *Gauge
(*T) GetHistogram () *Histogram
(*T) GetLabel () []*LabelPair
(*T) GetSummary () *Summary
(*T) GetTimestampMs () int64
(*T) GetUntyped () *Untyped
(*T) ProtoMessage ()
(*T) Reset ()
(*T) String () string
(*T) XXX_DiscardUnknown ()
(*T) XXX_Marshal (b []byte , deterministic bool ) ([]byte , error )
(*T) XXX_Merge (src proto .Message )
(*T) XXX_Size () int
(*T) XXX_Unmarshal (b []byte ) error
Implements (at least 6, in which 3 are exported )
*T : expvar.Var
*T : fmt.Stringer
*T : google.golang.org/protobuf/runtime/protoiface.MessageV1
/* 3+ unexporteds ... */ /* 3+ unexporteds: */
*T : context.stringer
*T : google.golang.org/protobuf/internal/impl.messageV1
*T : runtime.stringer
As Outputs Of (at least one exported )
func (*MetricFamily ).GetMetric () []*Metric
As Inputs Of (at least 12, in which 8 are exported )
func github.com/prometheus/client_golang/prometheus.Counter .Write (*Metric ) error
func github.com/prometheus/client_golang/prometheus.CounterFunc .Write (*Metric ) error
func github.com/prometheus/client_golang/prometheus.Gauge .Write (*Metric ) error
func github.com/prometheus/client_golang/prometheus.GaugeFunc .Write (*Metric ) error
func github.com/prometheus/client_golang/prometheus.Histogram .Write (*Metric ) error
func github.com/prometheus/client_golang/prometheus.Metric .Write (*Metric ) error
func github.com/prometheus/client_golang/prometheus.Summary .Write (*Metric ) error
func github.com/prometheus/client_golang/prometheus.UntypedFunc .Write (*Metric ) error
/* 4+ unexporteds ... */ /* 4+ unexporteds: */
func github.com/prometheus/client_golang/prometheus.checkDescConsistency (metricFamily *MetricFamily , dtoMetric *Metric , desc *prometheus .Desc ) error
func github.com/prometheus/client_golang/prometheus.checkMetricConsistency (metricFamily *MetricFamily , dtoMetric *Metric , metricHashes map[uint64 ]struct{}) error
func github.com/prometheus/client_golang/prometheus.populateMetric (t prometheus .ValueType , v float64 , labelPairs []*LabelPair , m *Metric ) error
func github.com/prometheus/common/expfmt.writeSample (w expfmt .enhancedWriter , name, suffix string , metric *Metric , additionalLabelName string , additionalLabelValue float64 , value float64 ) (int , error )
type MetricFamily (struct)
Fields (total 7, all are exported )
Help *string
Metric []*Metric
Name *string
Type *MetricType
XXX_NoUnkeyedLiteral struct{}
XXX_sizecache int32
XXX_unrecognized []byte
Methods (total 13, all are exported )
(*T) Descriptor () ([]byte , []int )
(*T) GetHelp () string
(*T) GetMetric () []*Metric
(*T) GetName () string
(*T) GetType () MetricType
(*T) ProtoMessage ()
(*T) Reset ()
(*T) String () string
(*T) XXX_DiscardUnknown ()
(*T) XXX_Marshal (b []byte , deterministic bool ) ([]byte , error )
(*T) XXX_Merge (src proto .Message )
(*T) XXX_Size () int
(*T) XXX_Unmarshal (b []byte ) error
Implements (at least 6, in which 3 are exported )
*T : expvar.Var
*T : fmt.Stringer
*T : google.golang.org/protobuf/runtime/protoiface.MessageV1
/* 3+ unexporteds ... */ /* 3+ unexporteds: */
*T : context.stringer
*T : google.golang.org/protobuf/internal/impl.messageV1
*T : runtime.stringer
As Outputs Of (at least 6, all are exported )
func github.com/prometheus/client_golang/prometheus.Gatherer .Gather () ([]*MetricFamily , error )
func github.com/prometheus/client_golang/prometheus.GathererFunc .Gather () ([]*MetricFamily , error )
func github.com/prometheus/client_golang/prometheus.Gatherers .Gather () ([]*MetricFamily , error )
func github.com/prometheus/client_golang/prometheus.(*Registry ).Gather () ([]*MetricFamily , error )
func github.com/prometheus/client_golang/prometheus/internal.NormalizeMetricFamilies (metricFamiliesByName map[string ]*MetricFamily ) []*MetricFamily
func github.com/prometheus/common/expfmt.(*TextParser ).TextToMetricFamilies (in io .Reader ) (map[string ]*MetricFamily , error )
As Inputs Of (at least 16, in which 5 are exported )
func github.com/prometheus/client_golang/prometheus/internal.NormalizeMetricFamilies (metricFamiliesByName map[string ]*MetricFamily ) []*MetricFamily
func github.com/prometheus/common/expfmt.ExtractSamples (o *expfmt .DecodeOptions , fams ...*MetricFamily ) (model .Vector , error )
func github.com/prometheus/common/expfmt.MetricFamilyToText (out io .Writer , in *MetricFamily ) (written int , err error )
func github.com/prometheus/common/expfmt.Decoder .Decode (*MetricFamily ) error
func github.com/prometheus/common/expfmt.Encoder .Encode (*MetricFamily ) error
/* 11+ unexporteds ... */ /* 11+ unexporteds: */
func github.com/prometheus/client_golang/prometheus.checkDescConsistency (metricFamily *MetricFamily , dtoMetric *Metric , desc *prometheus .Desc ) error
func github.com/prometheus/client_golang/prometheus.checkMetricConsistency (metricFamily *MetricFamily , dtoMetric *Metric , metricHashes map[uint64 ]struct{}) error
func github.com/prometheus/client_golang/prometheus.checkSuffixCollisions (mf *MetricFamily , mfs map[string ]*MetricFamily ) error
func github.com/prometheus/client_golang/prometheus.checkSuffixCollisions (mf *MetricFamily , mfs map[string ]*MetricFamily ) error
func github.com/prometheus/client_golang/prometheus.processMetric (metric prometheus .Metric , metricFamiliesByName map[string ]*MetricFamily , metricHashes map[uint64 ]struct{}, registeredDescIDs map[uint64 ]struct{}) error
func github.com/prometheus/common/expfmt.extractCounter (o *expfmt .DecodeOptions , f *MetricFamily ) model .Vector
func github.com/prometheus/common/expfmt.extractGauge (o *expfmt .DecodeOptions , f *MetricFamily ) model .Vector
func github.com/prometheus/common/expfmt.extractHistogram (o *expfmt .DecodeOptions , f *MetricFamily ) model .Vector
func github.com/prometheus/common/expfmt.extractSamples (f *MetricFamily , o *expfmt .DecodeOptions ) (model .Vector , error )
func github.com/prometheus/common/expfmt.extractSummary (o *expfmt .DecodeOptions , f *MetricFamily ) model .Vector
func github.com/prometheus/common/expfmt.extractUntyped (o *expfmt .DecodeOptions , f *MetricFamily ) model .Vector
Package-Level Constants (total 5, all are exported)
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 .