Documentation ¶
Index ¶
- Variables
- type Bucket
- func (*Bucket) Descriptor() ([]byte, []int)
- func (m *Bucket) GetCumulativeCount() uint64
- func (m *Bucket) GetUpperBound() float64
- func (m *Bucket) Marshal() (dAtA []byte, err error)
- func (m *Bucket) MarshalTo(dAtA []byte) (int, error)
- func (m *Bucket) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Bucket) ProtoMessage()
- func (m *Bucket) Reset()
- func (m *Bucket) Size() (n int)
- func (m *Bucket) String() string
- func (m *Bucket) Unmarshal(dAtA []byte) error
- func (m *Bucket) XXX_DiscardUnknown()
- func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bucket) XXX_Merge(src proto.Message)
- func (m *Bucket) XXX_Size() int
- func (m *Bucket) XXX_Unmarshal(b []byte) error
- type Counter
- func (*Counter) Descriptor() ([]byte, []int)
- func (m *Counter) GetValue() float64
- func (m *Counter) Marshal() (dAtA []byte, err error)
- func (m *Counter) MarshalTo(dAtA []byte) (int, error)
- func (m *Counter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Counter) ProtoMessage()
- func (m *Counter) Reset()
- func (m *Counter) Size() (n int)
- func (m *Counter) String() string
- func (m *Counter) Unmarshal(dAtA []byte) error
- func (m *Counter) XXX_DiscardUnknown()
- func (m *Counter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Counter) XXX_Merge(src proto.Message)
- func (m *Counter) XXX_Size() int
- func (m *Counter) XXX_Unmarshal(b []byte) error
- type Gauge
- func (*Gauge) Descriptor() ([]byte, []int)
- func (m *Gauge) GetValue() float64
- func (m *Gauge) Marshal() (dAtA []byte, err error)
- func (m *Gauge) MarshalTo(dAtA []byte) (int, error)
- func (m *Gauge) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Gauge) ProtoMessage()
- func (m *Gauge) Reset()
- func (m *Gauge) Size() (n int)
- func (m *Gauge) String() string
- func (m *Gauge) Unmarshal(dAtA []byte) error
- func (m *Gauge) XXX_DiscardUnknown()
- func (m *Gauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Gauge) XXX_Merge(src proto.Message)
- func (m *Gauge) XXX_Size() int
- func (m *Gauge) XXX_Unmarshal(b []byte) error
- type Histogram
- func (*Histogram) Descriptor() ([]byte, []int)
- func (m *Histogram) GetBucket() []*Bucket
- func (m *Histogram) GetSampleCount() uint64
- func (m *Histogram) GetSampleSum() float64
- func (m *Histogram) Marshal() (dAtA []byte, err error)
- func (m *Histogram) MarshalTo(dAtA []byte) (int, error)
- func (m *Histogram) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Histogram) ProtoMessage()
- func (m *Histogram) Reset()
- func (m *Histogram) Size() (n int)
- func (m *Histogram) String() string
- func (m *Histogram) Unmarshal(dAtA []byte) error
- func (m *Histogram) XXX_DiscardUnknown()
- func (m *Histogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Histogram) XXX_Merge(src proto.Message)
- func (m *Histogram) XXX_Size() int
- func (m *Histogram) XXX_Unmarshal(b []byte) error
- type LabelPair
- func (*LabelPair) Descriptor() ([]byte, []int)
- func (m *LabelPair) GetName() string
- func (m *LabelPair) GetValue() string
- func (m *LabelPair) Marshal() (dAtA []byte, err error)
- func (m *LabelPair) MarshalTo(dAtA []byte) (int, error)
- func (m *LabelPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LabelPair) ProtoMessage()
- func (m *LabelPair) Reset()
- func (m *LabelPair) Size() (n int)
- func (m *LabelPair) String() string
- func (m *LabelPair) Unmarshal(dAtA []byte) error
- func (m *LabelPair) XXX_DiscardUnknown()
- func (m *LabelPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LabelPair) XXX_Merge(src proto.Message)
- func (m *LabelPair) XXX_Size() int
- func (m *LabelPair) XXX_Unmarshal(b []byte) error
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)
- func (m *Metric) GetCounter() *Counter
- func (m *Metric) GetGauge() *Gauge
- func (m *Metric) GetHistogram() *Histogram
- func (m *Metric) GetLabel() []*LabelPair
- func (m *Metric) GetSummary() *Summary
- func (m *Metric) GetTimestampMs() int64
- func (m *Metric) GetUntyped() *Untyped
- func (m *Metric) Marshal() (dAtA []byte, err error)
- func (m *Metric) MarshalTo(dAtA []byte) (int, error)
- func (m *Metric) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Metric) ProtoMessage()
- func (m *Metric) Reset()
- func (m *Metric) Size() (n int)
- func (m *Metric) String() string
- func (m *Metric) Unmarshal(dAtA []byte) error
- func (m *Metric) XXX_DiscardUnknown()
- func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metric) XXX_Merge(src proto.Message)
- func (m *Metric) XXX_Size() int
- func (m *Metric) XXX_Unmarshal(b []byte) error
- type MetricFamily
- func (*MetricFamily) Descriptor() ([]byte, []int)
- func (m *MetricFamily) GetHelp() string
- func (m *MetricFamily) GetMetric() []*Metric
- func (m *MetricFamily) GetName() string
- func (m *MetricFamily) GetType() MetricType
- func (m *MetricFamily) Marshal() (dAtA []byte, err error)
- func (m *MetricFamily) MarshalTo(dAtA []byte) (int, error)
- func (m *MetricFamily) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MetricFamily) ProtoMessage()
- func (m *MetricFamily) Reset()
- func (m *MetricFamily) Size() (n int)
- func (m *MetricFamily) String() string
- func (m *MetricFamily) Unmarshal(dAtA []byte) error
- func (m *MetricFamily) XXX_DiscardUnknown()
- func (m *MetricFamily) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MetricFamily) XXX_Merge(src proto.Message)
- func (m *MetricFamily) XXX_Size() int
- func (m *MetricFamily) XXX_Unmarshal(b []byte) error
- type MetricType
- type Quantile
- func (*Quantile) Descriptor() ([]byte, []int)
- func (m *Quantile) GetQuantile() float64
- func (m *Quantile) GetValue() float64
- func (m *Quantile) Marshal() (dAtA []byte, err error)
- func (m *Quantile) MarshalTo(dAtA []byte) (int, error)
- func (m *Quantile) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Quantile) ProtoMessage()
- func (m *Quantile) Reset()
- func (m *Quantile) Size() (n int)
- func (m *Quantile) String() string
- func (m *Quantile) Unmarshal(dAtA []byte) error
- func (m *Quantile) XXX_DiscardUnknown()
- func (m *Quantile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Quantile) XXX_Merge(src proto.Message)
- func (m *Quantile) XXX_Size() int
- func (m *Quantile) XXX_Unmarshal(b []byte) error
- type Summary
- func (*Summary) Descriptor() ([]byte, []int)
- func (m *Summary) GetQuantile() []*Quantile
- func (m *Summary) GetSampleCount() uint64
- func (m *Summary) GetSampleSum() float64
- func (m *Summary) Marshal() (dAtA []byte, err error)
- func (m *Summary) MarshalTo(dAtA []byte) (int, error)
- func (m *Summary) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Summary) ProtoMessage()
- func (m *Summary) Reset()
- func (m *Summary) Size() (n int)
- func (m *Summary) String() string
- func (m *Summary) Unmarshal(dAtA []byte) error
- func (m *Summary) XXX_DiscardUnknown()
- func (m *Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Summary) XXX_Merge(src proto.Message)
- func (m *Summary) XXX_Size() int
- func (m *Summary) XXX_Unmarshal(b []byte) error
- type Untyped
- func (*Untyped) Descriptor() ([]byte, []int)
- func (m *Untyped) GetValue() float64
- func (m *Untyped) Marshal() (dAtA []byte, err error)
- func (m *Untyped) MarshalTo(dAtA []byte) (int, error)
- func (m *Untyped) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Untyped) ProtoMessage()
- func (m *Untyped) Reset()
- func (m *Untyped) Size() (n int)
- func (m *Untyped) String() string
- func (m *Untyped) Unmarshal(dAtA []byte) error
- func (m *Untyped) XXX_DiscardUnknown()
- func (m *Untyped) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Untyped) XXX_Merge(src proto.Message)
- func (m *Untyped) XXX_Size() int
- func (m *Untyped) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMetrics = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMetrics = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMetrics = fmt.Errorf("proto: unexpected end of group") )
View Source
var MetricType_name = map[int32]string{
0: "COUNTER",
1: "GAUGE",
2: "SUMMARY",
3: "UNTYPED",
4: "HISTOGRAM",
}
View Source
var MetricType_value = map[string]int32{
"COUNTER": 0,
"GAUGE": 1,
"SUMMARY": 2,
"UNTYPED": 3,
"HISTOGRAM": 4,
}
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"` UpperBound float64 `protobuf:"fixed64,2,opt,name=upper_bound,json=upperBound" json:"upper_bound"` }
func (*Bucket) Descriptor ¶
func (*Bucket) GetCumulativeCount ¶
func (*Bucket) GetUpperBound ¶
func (*Bucket) MarshalToSizedBuffer ¶
func (*Bucket) ProtoMessage ¶
func (*Bucket) ProtoMessage()
func (*Bucket) XXX_DiscardUnknown ¶
func (m *Bucket) XXX_DiscardUnknown()
func (*Bucket) XXX_Marshal ¶
func (*Bucket) XXX_Unmarshal ¶
type Counter ¶
type Counter struct {
Value float64 `protobuf:"fixed64,1,opt,name=value" json:"value"`
}
func (*Counter) Descriptor ¶
func (*Counter) MarshalToSizedBuffer ¶
func (*Counter) ProtoMessage ¶
func (*Counter) ProtoMessage()
func (*Counter) XXX_DiscardUnknown ¶
func (m *Counter) XXX_DiscardUnknown()
func (*Counter) XXX_Marshal ¶
func (*Counter) XXX_Unmarshal ¶
type Gauge ¶
type Gauge struct {
Value float64 `protobuf:"fixed64,1,opt,name=value" json:"value"`
}
func (*Gauge) Descriptor ¶
func (*Gauge) ProtoMessage ¶
func (*Gauge) ProtoMessage()
func (*Gauge) XXX_DiscardUnknown ¶
func (m *Gauge) XXX_DiscardUnknown()
func (*Gauge) XXX_Marshal ¶
func (*Gauge) XXX_Unmarshal ¶
type Histogram ¶
type Histogram struct { SampleCount uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count"` SampleSum float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum"` Bucket []*Bucket `protobuf:"bytes,3,rep,name=bucket" json:"bucket,omitempty"` }
func (*Histogram) Descriptor ¶
func (*Histogram) GetSampleCount ¶
func (*Histogram) GetSampleSum ¶
func (*Histogram) MarshalToSizedBuffer ¶
func (*Histogram) ProtoMessage ¶
func (*Histogram) ProtoMessage()
func (*Histogram) XXX_DiscardUnknown ¶
func (m *Histogram) XXX_DiscardUnknown()
func (*Histogram) XXX_Marshal ¶
func (*Histogram) XXX_Unmarshal ¶
type LabelPair ¶
type LabelPair struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name"` Value string `protobuf:"bytes,2,opt,name=value" json:"value"` }
func (*LabelPair) Descriptor ¶
func (*LabelPair) MarshalToSizedBuffer ¶
func (*LabelPair) ProtoMessage ¶
func (*LabelPair) ProtoMessage()
func (*LabelPair) XXX_DiscardUnknown ¶
func (m *LabelPair) XXX_DiscardUnknown()
func (*LabelPair) XXX_Marshal ¶
func (*LabelPair) XXX_Unmarshal ¶
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"` }
func (*Metric) Descriptor ¶
func (*Metric) GetCounter ¶
func (*Metric) GetHistogram ¶
func (*Metric) GetSummary ¶
func (*Metric) GetTimestampMs ¶
func (*Metric) GetUntyped ¶
func (*Metric) MarshalToSizedBuffer ¶
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) XXX_DiscardUnknown ¶
func (m *Metric) XXX_DiscardUnknown()
func (*Metric) XXX_Marshal ¶
func (*Metric) XXX_Unmarshal ¶
type MetricFamily ¶
type MetricFamily struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name"` Help string `protobuf:"bytes,2,opt,name=help" json:"help"` Type MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type"` Metric []*Metric `protobuf:"bytes,4,rep,name=metric" json:"metric,omitempty"` }
func (*MetricFamily) Descriptor ¶
func (*MetricFamily) Descriptor() ([]byte, []int)
func (*MetricFamily) GetHelp ¶
func (m *MetricFamily) GetHelp() string
func (*MetricFamily) GetMetric ¶
func (m *MetricFamily) GetMetric() []*Metric
func (*MetricFamily) GetName ¶
func (m *MetricFamily) GetName() string
func (*MetricFamily) GetType ¶
func (m *MetricFamily) GetType() MetricType
func (*MetricFamily) Marshal ¶
func (m *MetricFamily) Marshal() (dAtA []byte, err error)
func (*MetricFamily) MarshalToSizedBuffer ¶
func (m *MetricFamily) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MetricFamily) ProtoMessage ¶
func (*MetricFamily) ProtoMessage()
func (*MetricFamily) Reset ¶
func (m *MetricFamily) Reset()
func (*MetricFamily) Size ¶
func (m *MetricFamily) Size() (n int)
func (*MetricFamily) String ¶
func (m *MetricFamily) String() string
func (*MetricFamily) Unmarshal ¶
func (m *MetricFamily) Unmarshal(dAtA []byte) error
func (*MetricFamily) XXX_DiscardUnknown ¶
func (m *MetricFamily) XXX_DiscardUnknown()
func (*MetricFamily) XXX_Marshal ¶
func (m *MetricFamily) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MetricFamily) XXX_Merge ¶
func (m *MetricFamily) XXX_Merge(src proto.Message)
func (*MetricFamily) XXX_Size ¶
func (m *MetricFamily) XXX_Size() int
func (*MetricFamily) XXX_Unmarshal ¶
func (m *MetricFamily) XXX_Unmarshal(b []byte) error
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) Enum ¶
func (x MetricType) Enum() *MetricType
func (MetricType) EnumDescriptor ¶
func (MetricType) EnumDescriptor() ([]byte, []int)
func (MetricType) String ¶
func (x MetricType) String() string
func (*MetricType) UnmarshalJSON ¶
func (x *MetricType) UnmarshalJSON(data []byte) error
type Quantile ¶
type Quantile struct { Quantile float64 `protobuf:"fixed64,1,opt,name=quantile" json:"quantile"` Value float64 `protobuf:"fixed64,2,opt,name=value" json:"value"` }
func (*Quantile) Descriptor ¶
func (*Quantile) GetQuantile ¶
func (*Quantile) MarshalToSizedBuffer ¶
func (*Quantile) ProtoMessage ¶
func (*Quantile) ProtoMessage()
func (*Quantile) XXX_DiscardUnknown ¶
func (m *Quantile) XXX_DiscardUnknown()
func (*Quantile) XXX_Marshal ¶
func (*Quantile) XXX_Unmarshal ¶
type Summary ¶
type Summary struct { SampleCount uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count"` SampleSum float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum"` Quantile []*Quantile `protobuf:"bytes,3,rep,name=quantile" json:"quantile,omitempty"` }
func (*Summary) Descriptor ¶
func (*Summary) GetQuantile ¶
func (*Summary) GetSampleCount ¶
func (*Summary) GetSampleSum ¶
func (*Summary) MarshalToSizedBuffer ¶
func (*Summary) ProtoMessage ¶
func (*Summary) ProtoMessage()
func (*Summary) XXX_DiscardUnknown ¶
func (m *Summary) XXX_DiscardUnknown()
func (*Summary) XXX_Marshal ¶
func (*Summary) XXX_Unmarshal ¶
type Untyped ¶
type Untyped struct {
Value float64 `protobuf:"fixed64,1,opt,name=value" json:"value"`
}
func (*Untyped) Descriptor ¶
func (*Untyped) MarshalToSizedBuffer ¶
func (*Untyped) ProtoMessage ¶
func (*Untyped) ProtoMessage()
func (*Untyped) XXX_DiscardUnknown ¶
func (m *Untyped) XXX_DiscardUnknown()
func (*Untyped) XXX_Marshal ¶
func (*Untyped) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.