Documentation ¶
Index ¶
- Variables
- type Bucket
- func (*Bucket) Descriptor() ([]byte, []int)deprecated
- func (x *Bucket) GetCumulativeCount() uint64
- func (x *Bucket) GetExemplar() *Exemplar
- func (x *Bucket) GetUpperBound() float64
- func (*Bucket) ProtoMessage()
- func (x *Bucket) ProtoReflect() protoreflect.Message
- func (x *Bucket) Reset()
- func (x *Bucket) String() string
- type Counter
- type Exemplar
- func (*Exemplar) Descriptor() ([]byte, []int)deprecated
- func (x *Exemplar) GetLabel() []*LabelPair
- func (x *Exemplar) GetTimestamp() *timestamppb.Timestamp
- func (x *Exemplar) GetValue() float64
- func (*Exemplar) ProtoMessage()
- func (x *Exemplar) ProtoReflect() protoreflect.Message
- func (x *Exemplar) Reset()
- func (x *Exemplar) String() string
- type Gauge
- type Histogram
- func (*Histogram) Descriptor() ([]byte, []int)deprecated
- func (x *Histogram) GetBucket() []*Bucket
- func (x *Histogram) GetSampleCount() uint64
- func (x *Histogram) GetSampleSum() float64
- func (*Histogram) ProtoMessage()
- func (x *Histogram) ProtoReflect() protoreflect.Message
- func (x *Histogram) Reset()
- func (x *Histogram) String() string
- type LabelPair
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)deprecated
- func (x *Metric) GetCounter() *Counter
- func (x *Metric) GetGauge() *Gauge
- func (x *Metric) GetHistogram() *Histogram
- func (x *Metric) GetLabel() []*LabelPair
- func (x *Metric) GetSummary() *Summary
- func (x *Metric) GetTimestampMs() int64
- func (x *Metric) GetUntyped() *Untyped
- func (*Metric) ProtoMessage()
- func (x *Metric) ProtoReflect() protoreflect.Message
- func (x *Metric) Reset()
- func (x *Metric) String() string
- type MetricFamily
- func (*MetricFamily) Descriptor() ([]byte, []int)deprecated
- func (x *MetricFamily) GetHelp() string
- func (x *MetricFamily) GetMetric() []*Metric
- func (x *MetricFamily) GetName() string
- func (x *MetricFamily) GetType() MetricType
- func (*MetricFamily) ProtoMessage()
- func (x *MetricFamily) ProtoReflect() protoreflect.Message
- func (x *MetricFamily) Reset()
- func (x *MetricFamily) String() string
- type MetricType
- func (MetricType) Descriptor() protoreflect.EnumDescriptor
- func (x MetricType) Enum() *MetricType
- func (MetricType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MetricType) Number() protoreflect.EnumNumber
- func (x MetricType) String() string
- func (MetricType) Type() protoreflect.EnumType
- func (x *MetricType) UnmarshalJSON(b []byte) errordeprecated
- type Quantile
- type Summary
- func (*Summary) Descriptor() ([]byte, []int)deprecated
- func (x *Summary) GetQuantile() []*Quantile
- func (x *Summary) GetSampleCount() uint64
- func (x *Summary) GetSampleSum() float64
- func (*Summary) ProtoMessage()
- func (x *Summary) ProtoReflect() protoreflect.Message
- func (x *Summary) Reset()
- func (x *Summary) String() string
- type Untyped
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MetricType_name = map[int32]string{ 0: "COUNTER", 1: "GAUGE", 2: "SUMMARY", 3: "UNTYPED", 4: "HISTOGRAM", } MetricType_value = map[string]int32{ "COUNTER": 0, "GAUGE": 1, "SUMMARY": 2, "UNTYPED": 3, "HISTOGRAM": 4, } )
Enum value maps for MetricType.
View Source
var File_io_prometheus_client_metrics_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct { CumulativeCount *uint64 `protobuf:"varint,1,opt,name=cumulative_count,json=cumulativeCount" json:"cumulative_count,omitempty"` // Cumulative in increasing order. UpperBound *float64 `protobuf:"fixed64,2,opt,name=upper_bound,json=upperBound" json:"upper_bound,omitempty"` // Inclusive. Exemplar *Exemplar `protobuf:"bytes,3,opt,name=exemplar" json:"exemplar,omitempty"` // contains filtered or unexported fields }
func (*Bucket) Descriptor
deprecated
func (*Bucket) GetCumulativeCount ¶
func (*Bucket) GetExemplar ¶
func (*Bucket) GetUpperBound ¶
func (*Bucket) ProtoMessage ¶
func (*Bucket) ProtoMessage()
func (*Bucket) ProtoReflect ¶
func (x *Bucket) ProtoReflect() protoreflect.Message
type Counter ¶
type Counter struct { Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` Exemplar *Exemplar `protobuf:"bytes,2,opt,name=exemplar" json:"exemplar,omitempty"` // contains filtered or unexported fields }
func (*Counter) Descriptor
deprecated
func (*Counter) GetExemplar ¶
func (*Counter) ProtoMessage ¶
func (*Counter) ProtoMessage()
func (*Counter) ProtoReflect ¶
func (x *Counter) ProtoReflect() protoreflect.Message
type Exemplar ¶
type Exemplar struct { Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"` Value *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"` // OpenMetrics-style. // contains filtered or unexported fields }
func (*Exemplar) Descriptor
deprecated
func (*Exemplar) GetTimestamp ¶
func (x *Exemplar) GetTimestamp() *timestamppb.Timestamp
func (*Exemplar) ProtoMessage ¶
func (*Exemplar) ProtoMessage()
func (*Exemplar) ProtoReflect ¶
func (x *Exemplar) ProtoReflect() protoreflect.Message
type Gauge ¶
type Gauge struct { Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Gauge) Descriptor
deprecated
func (*Gauge) ProtoMessage ¶
func (*Gauge) ProtoMessage()
func (*Gauge) ProtoReflect ¶
func (x *Gauge) ProtoReflect() protoreflect.Message
type Histogram ¶
type Histogram struct { SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"` SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"` Bucket []*Bucket `protobuf:"bytes,3,rep,name=bucket" json:"bucket,omitempty"` // Ordered in increasing order of upper_bound, +Inf bucket is optional. // contains filtered or unexported fields }
func (*Histogram) Descriptor
deprecated
func (*Histogram) GetSampleCount ¶
func (*Histogram) GetSampleSum ¶
func (*Histogram) ProtoMessage ¶
func (*Histogram) ProtoMessage()
func (*Histogram) ProtoReflect ¶
func (x *Histogram) ProtoReflect() protoreflect.Message
type LabelPair ¶
type LabelPair struct { Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` // contains filtered or unexported fields }
func (*LabelPair) Descriptor
deprecated
func (*LabelPair) ProtoMessage ¶
func (*LabelPair) ProtoMessage()
func (*LabelPair) ProtoReflect ¶
func (x *LabelPair) ProtoReflect() protoreflect.Message
type Metric ¶
type Metric struct { Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"` Gauge *Gauge `protobuf:"bytes,2,opt,name=gauge" json:"gauge,omitempty"` Counter *Counter `protobuf:"bytes,3,opt,name=counter" json:"counter,omitempty"` Summary *Summary `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"` Untyped *Untyped `protobuf:"bytes,5,opt,name=untyped" json:"untyped,omitempty"` Histogram *Histogram `protobuf:"bytes,7,opt,name=histogram" json:"histogram,omitempty"` TimestampMs *int64 `protobuf:"varint,6,opt,name=timestamp_ms,json=timestampMs" json:"timestamp_ms,omitempty"` // contains filtered or unexported fields }
func (*Metric) Descriptor
deprecated
func (*Metric) GetCounter ¶
func (*Metric) GetHistogram ¶
func (*Metric) GetSummary ¶
func (*Metric) GetTimestampMs ¶
func (*Metric) GetUntyped ¶
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) ProtoReflect ¶
func (x *Metric) ProtoReflect() protoreflect.Message
type MetricFamily ¶
type MetricFamily struct { Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Help *string `protobuf:"bytes,2,opt,name=help" json:"help,omitempty"` Type *MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type,omitempty"` Metric []*Metric `protobuf:"bytes,4,rep,name=metric" json:"metric,omitempty"` // contains filtered or unexported fields }
func (*MetricFamily) Descriptor
deprecated
func (*MetricFamily) Descriptor() ([]byte, []int)
Deprecated: Use MetricFamily.ProtoReflect.Descriptor instead.
func (*MetricFamily) GetHelp ¶
func (x *MetricFamily) GetHelp() string
func (*MetricFamily) GetMetric ¶
func (x *MetricFamily) GetMetric() []*Metric
func (*MetricFamily) GetName ¶
func (x *MetricFamily) GetName() string
func (*MetricFamily) GetType ¶
func (x *MetricFamily) GetType() MetricType
func (*MetricFamily) ProtoMessage ¶
func (*MetricFamily) ProtoMessage()
func (*MetricFamily) ProtoReflect ¶
func (x *MetricFamily) ProtoReflect() protoreflect.Message
func (*MetricFamily) Reset ¶
func (x *MetricFamily) Reset()
func (*MetricFamily) String ¶
func (x *MetricFamily) String() string
type MetricType ¶
type MetricType int32
const ( MetricType_COUNTER MetricType = 0 MetricType_GAUGE MetricType = 1 MetricType_SUMMARY MetricType = 2 MetricType_UNTYPED MetricType = 3 MetricType_HISTOGRAM MetricType = 4 )
func (MetricType) Descriptor ¶
func (MetricType) Descriptor() protoreflect.EnumDescriptor
func (MetricType) Enum ¶
func (x MetricType) Enum() *MetricType
func (MetricType) EnumDescriptor
deprecated
func (MetricType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MetricType.Descriptor instead.
func (MetricType) Number ¶
func (x MetricType) Number() protoreflect.EnumNumber
func (MetricType) String ¶
func (x MetricType) String() string
func (MetricType) Type ¶
func (MetricType) Type() protoreflect.EnumType
func (*MetricType) UnmarshalJSON
deprecated
func (x *MetricType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Quantile ¶
type Quantile struct { Quantile *float64 `protobuf:"fixed64,1,opt,name=quantile" json:"quantile,omitempty"` Value *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Quantile) Descriptor
deprecated
func (*Quantile) GetQuantile ¶
func (*Quantile) ProtoMessage ¶
func (*Quantile) ProtoMessage()
func (*Quantile) ProtoReflect ¶
func (x *Quantile) ProtoReflect() protoreflect.Message
type Summary ¶
type Summary struct { SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"` SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"` Quantile []*Quantile `protobuf:"bytes,3,rep,name=quantile" json:"quantile,omitempty"` // contains filtered or unexported fields }
func (*Summary) Descriptor
deprecated
func (*Summary) GetQuantile ¶
func (*Summary) GetSampleCount ¶
func (*Summary) GetSampleSum ¶
func (*Summary) ProtoMessage ¶
func (*Summary) ProtoMessage()
func (*Summary) ProtoReflect ¶
func (x *Summary) ProtoReflect() protoreflect.Message
type Untyped ¶
type Untyped struct { Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Untyped) Descriptor
deprecated
func (*Untyped) ProtoMessage ¶
func (*Untyped) ProtoMessage()
func (*Untyped) ProtoReflect ¶
func (x *Untyped) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.