Documentation ¶
Index ¶
- Variables
- type AggregationTemporality
- type DoubleDataPoint
- func (*DoubleDataPoint) Descriptor() ([]byte, []int)
- func (m *DoubleDataPoint) GetExemplars() []*DoubleExemplar
- func (m *DoubleDataPoint) GetLabels() []v11.StringKeyValue
- func (m *DoubleDataPoint) GetStartTimeUnixNano() uint64
- func (m *DoubleDataPoint) GetTimeUnixNano() uint64
- func (m *DoubleDataPoint) GetValue() float64
- func (m *DoubleDataPoint) Marshal() (dAtA []byte, err error)
- func (m *DoubleDataPoint) MarshalTo(dAtA []byte) (int, error)
- func (m *DoubleDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DoubleDataPoint) ProtoMessage()
- func (m *DoubleDataPoint) Reset()
- func (m *DoubleDataPoint) Size() (n int)
- func (m *DoubleDataPoint) String() string
- func (m *DoubleDataPoint) Unmarshal(dAtA []byte) error
- func (m *DoubleDataPoint) XXX_DiscardUnknown()
- func (m *DoubleDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DoubleDataPoint) XXX_Merge(src proto.Message)
- func (m *DoubleDataPoint) XXX_Size() int
- func (m *DoubleDataPoint) XXX_Unmarshal(b []byte) error
- type DoubleExemplar
- func (*DoubleExemplar) Descriptor() ([]byte, []int)
- func (m *DoubleExemplar) GetFilteredLabels() []v11.StringKeyValue
- func (m *DoubleExemplar) GetTimeUnixNano() uint64
- func (m *DoubleExemplar) GetValue() float64
- func (m *DoubleExemplar) Marshal() (dAtA []byte, err error)
- func (m *DoubleExemplar) MarshalTo(dAtA []byte) (int, error)
- func (m *DoubleExemplar) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DoubleExemplar) ProtoMessage()
- func (m *DoubleExemplar) Reset()
- func (m *DoubleExemplar) Size() (n int)
- func (m *DoubleExemplar) String() string
- func (m *DoubleExemplar) Unmarshal(dAtA []byte) error
- func (m *DoubleExemplar) XXX_DiscardUnknown()
- func (m *DoubleExemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DoubleExemplar) XXX_Merge(src proto.Message)
- func (m *DoubleExemplar) XXX_Size() int
- func (m *DoubleExemplar) XXX_Unmarshal(b []byte) error
- type DoubleGauge
- func (*DoubleGauge) Descriptor() ([]byte, []int)
- func (m *DoubleGauge) GetDataPoints() []*DoubleDataPoint
- func (m *DoubleGauge) Marshal() (dAtA []byte, err error)
- func (m *DoubleGauge) MarshalTo(dAtA []byte) (int, error)
- func (m *DoubleGauge) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DoubleGauge) ProtoMessage()
- func (m *DoubleGauge) Reset()
- func (m *DoubleGauge) Size() (n int)
- func (m *DoubleGauge) String() string
- func (m *DoubleGauge) Unmarshal(dAtA []byte) error
- func (m *DoubleGauge) XXX_DiscardUnknown()
- func (m *DoubleGauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DoubleGauge) XXX_Merge(src proto.Message)
- func (m *DoubleGauge) XXX_Size() int
- func (m *DoubleGauge) XXX_Unmarshal(b []byte) error
- type DoubleHistogram
- func (*DoubleHistogram) Descriptor() ([]byte, []int)
- func (m *DoubleHistogram) GetAggregationTemporality() AggregationTemporality
- func (m *DoubleHistogram) GetDataPoints() []*DoubleHistogramDataPoint
- func (m *DoubleHistogram) Marshal() (dAtA []byte, err error)
- func (m *DoubleHistogram) MarshalTo(dAtA []byte) (int, error)
- func (m *DoubleHistogram) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DoubleHistogram) ProtoMessage()
- func (m *DoubleHistogram) Reset()
- func (m *DoubleHistogram) Size() (n int)
- func (m *DoubleHistogram) String() string
- func (m *DoubleHistogram) Unmarshal(dAtA []byte) error
- func (m *DoubleHistogram) XXX_DiscardUnknown()
- func (m *DoubleHistogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DoubleHistogram) XXX_Merge(src proto.Message)
- func (m *DoubleHistogram) XXX_Size() int
- func (m *DoubleHistogram) XXX_Unmarshal(b []byte) error
- type DoubleHistogramDataPoint
- func (*DoubleHistogramDataPoint) Descriptor() ([]byte, []int)
- func (m *DoubleHistogramDataPoint) GetBucketCounts() []uint64
- func (m *DoubleHistogramDataPoint) GetCount() uint64
- func (m *DoubleHistogramDataPoint) GetExemplars() []*DoubleExemplar
- func (m *DoubleHistogramDataPoint) GetExplicitBounds() []float64
- func (m *DoubleHistogramDataPoint) GetLabels() []v11.StringKeyValue
- func (m *DoubleHistogramDataPoint) GetStartTimeUnixNano() uint64
- func (m *DoubleHistogramDataPoint) GetSum() float64
- func (m *DoubleHistogramDataPoint) GetTimeUnixNano() uint64
- func (m *DoubleHistogramDataPoint) Marshal() (dAtA []byte, err error)
- func (m *DoubleHistogramDataPoint) MarshalTo(dAtA []byte) (int, error)
- func (m *DoubleHistogramDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DoubleHistogramDataPoint) ProtoMessage()
- func (m *DoubleHistogramDataPoint) Reset()
- func (m *DoubleHistogramDataPoint) Size() (n int)
- func (m *DoubleHistogramDataPoint) String() string
- func (m *DoubleHistogramDataPoint) Unmarshal(dAtA []byte) error
- func (m *DoubleHistogramDataPoint) XXX_DiscardUnknown()
- func (m *DoubleHistogramDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DoubleHistogramDataPoint) XXX_Merge(src proto.Message)
- func (m *DoubleHistogramDataPoint) XXX_Size() int
- func (m *DoubleHistogramDataPoint) XXX_Unmarshal(b []byte) error
- type DoubleSum
- func (*DoubleSum) Descriptor() ([]byte, []int)
- func (m *DoubleSum) GetAggregationTemporality() AggregationTemporality
- func (m *DoubleSum) GetDataPoints() []*DoubleDataPoint
- func (m *DoubleSum) GetIsMonotonic() bool
- func (m *DoubleSum) Marshal() (dAtA []byte, err error)
- func (m *DoubleSum) MarshalTo(dAtA []byte) (int, error)
- func (m *DoubleSum) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DoubleSum) ProtoMessage()
- func (m *DoubleSum) Reset()
- func (m *DoubleSum) Size() (n int)
- func (m *DoubleSum) String() string
- func (m *DoubleSum) Unmarshal(dAtA []byte) error
- func (m *DoubleSum) XXX_DiscardUnknown()
- func (m *DoubleSum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DoubleSum) XXX_Merge(src proto.Message)
- func (m *DoubleSum) XXX_Size() int
- func (m *DoubleSum) XXX_Unmarshal(b []byte) error
- type DoubleSummary
- func (*DoubleSummary) Descriptor() ([]byte, []int)
- func (m *DoubleSummary) GetDataPoints() []*DoubleSummaryDataPoint
- func (m *DoubleSummary) Marshal() (dAtA []byte, err error)
- func (m *DoubleSummary) MarshalTo(dAtA []byte) (int, error)
- func (m *DoubleSummary) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DoubleSummary) ProtoMessage()
- func (m *DoubleSummary) Reset()
- func (m *DoubleSummary) Size() (n int)
- func (m *DoubleSummary) String() string
- func (m *DoubleSummary) Unmarshal(dAtA []byte) error
- func (m *DoubleSummary) XXX_DiscardUnknown()
- func (m *DoubleSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DoubleSummary) XXX_Merge(src proto.Message)
- func (m *DoubleSummary) XXX_Size() int
- func (m *DoubleSummary) XXX_Unmarshal(b []byte) error
- type DoubleSummaryDataPoint
- func (*DoubleSummaryDataPoint) Descriptor() ([]byte, []int)
- func (m *DoubleSummaryDataPoint) GetCount() uint64
- func (m *DoubleSummaryDataPoint) GetLabels() []v11.StringKeyValue
- func (m *DoubleSummaryDataPoint) GetQuantileValues() []*DoubleSummaryDataPoint_ValueAtQuantile
- func (m *DoubleSummaryDataPoint) GetStartTimeUnixNano() uint64
- func (m *DoubleSummaryDataPoint) GetSum() float64
- func (m *DoubleSummaryDataPoint) GetTimeUnixNano() uint64
- func (m *DoubleSummaryDataPoint) Marshal() (dAtA []byte, err error)
- func (m *DoubleSummaryDataPoint) MarshalTo(dAtA []byte) (int, error)
- func (m *DoubleSummaryDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DoubleSummaryDataPoint) ProtoMessage()
- func (m *DoubleSummaryDataPoint) Reset()
- func (m *DoubleSummaryDataPoint) Size() (n int)
- func (m *DoubleSummaryDataPoint) String() string
- func (m *DoubleSummaryDataPoint) Unmarshal(dAtA []byte) error
- func (m *DoubleSummaryDataPoint) XXX_DiscardUnknown()
- func (m *DoubleSummaryDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DoubleSummaryDataPoint) XXX_Merge(src proto.Message)
- func (m *DoubleSummaryDataPoint) XXX_Size() int
- func (m *DoubleSummaryDataPoint) XXX_Unmarshal(b []byte) error
- type DoubleSummaryDataPoint_ValueAtQuantile
- func (*DoubleSummaryDataPoint_ValueAtQuantile) Descriptor() ([]byte, []int)
- func (m *DoubleSummaryDataPoint_ValueAtQuantile) GetQuantile() float64
- func (m *DoubleSummaryDataPoint_ValueAtQuantile) GetValue() float64
- func (m *DoubleSummaryDataPoint_ValueAtQuantile) Marshal() (dAtA []byte, err error)
- func (m *DoubleSummaryDataPoint_ValueAtQuantile) MarshalTo(dAtA []byte) (int, error)
- func (m *DoubleSummaryDataPoint_ValueAtQuantile) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DoubleSummaryDataPoint_ValueAtQuantile) ProtoMessage()
- func (m *DoubleSummaryDataPoint_ValueAtQuantile) Reset()
- func (m *DoubleSummaryDataPoint_ValueAtQuantile) Size() (n int)
- func (m *DoubleSummaryDataPoint_ValueAtQuantile) String() string
- func (m *DoubleSummaryDataPoint_ValueAtQuantile) Unmarshal(dAtA []byte) error
- func (m *DoubleSummaryDataPoint_ValueAtQuantile) XXX_DiscardUnknown()
- func (m *DoubleSummaryDataPoint_ValueAtQuantile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DoubleSummaryDataPoint_ValueAtQuantile) XXX_Merge(src proto.Message)
- func (m *DoubleSummaryDataPoint_ValueAtQuantile) XXX_Size() int
- func (m *DoubleSummaryDataPoint_ValueAtQuantile) XXX_Unmarshal(b []byte) error
- type InstrumentationLibraryMetrics
- func (*InstrumentationLibraryMetrics) Descriptor() ([]byte, []int)
- func (m *InstrumentationLibraryMetrics) GetInstrumentationLibrary() v11.InstrumentationLibrary
- func (m *InstrumentationLibraryMetrics) GetMetrics() []*Metric
- func (m *InstrumentationLibraryMetrics) Marshal() (dAtA []byte, err error)
- func (m *InstrumentationLibraryMetrics) MarshalTo(dAtA []byte) (int, error)
- func (m *InstrumentationLibraryMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InstrumentationLibraryMetrics) ProtoMessage()
- func (m *InstrumentationLibraryMetrics) Reset()
- func (m *InstrumentationLibraryMetrics) Size() (n int)
- func (m *InstrumentationLibraryMetrics) String() string
- func (m *InstrumentationLibraryMetrics) Unmarshal(dAtA []byte) error
- func (m *InstrumentationLibraryMetrics) XXX_DiscardUnknown()
- func (m *InstrumentationLibraryMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InstrumentationLibraryMetrics) XXX_Merge(src proto.Message)
- func (m *InstrumentationLibraryMetrics) XXX_Size() int
- func (m *InstrumentationLibraryMetrics) XXX_Unmarshal(b []byte) error
- type IntDataPoint
- func (*IntDataPoint) Descriptor() ([]byte, []int)
- func (m *IntDataPoint) GetExemplars() []*IntExemplar
- func (m *IntDataPoint) GetLabels() []v11.StringKeyValue
- func (m *IntDataPoint) GetStartTimeUnixNano() uint64
- func (m *IntDataPoint) GetTimeUnixNano() uint64
- func (m *IntDataPoint) GetValue() int64
- func (m *IntDataPoint) Marshal() (dAtA []byte, err error)
- func (m *IntDataPoint) MarshalTo(dAtA []byte) (int, error)
- func (m *IntDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IntDataPoint) ProtoMessage()
- func (m *IntDataPoint) Reset()
- func (m *IntDataPoint) Size() (n int)
- func (m *IntDataPoint) String() string
- func (m *IntDataPoint) Unmarshal(dAtA []byte) error
- func (m *IntDataPoint) XXX_DiscardUnknown()
- func (m *IntDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IntDataPoint) XXX_Merge(src proto.Message)
- func (m *IntDataPoint) XXX_Size() int
- func (m *IntDataPoint) XXX_Unmarshal(b []byte) error
- type IntExemplar
- func (*IntExemplar) Descriptor() ([]byte, []int)
- func (m *IntExemplar) GetFilteredLabels() []v11.StringKeyValue
- func (m *IntExemplar) GetTimeUnixNano() uint64
- func (m *IntExemplar) GetValue() int64
- func (m *IntExemplar) Marshal() (dAtA []byte, err error)
- func (m *IntExemplar) MarshalTo(dAtA []byte) (int, error)
- func (m *IntExemplar) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IntExemplar) ProtoMessage()
- func (m *IntExemplar) Reset()
- func (m *IntExemplar) Size() (n int)
- func (m *IntExemplar) String() string
- func (m *IntExemplar) Unmarshal(dAtA []byte) error
- func (m *IntExemplar) XXX_DiscardUnknown()
- func (m *IntExemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IntExemplar) XXX_Merge(src proto.Message)
- func (m *IntExemplar) XXX_Size() int
- func (m *IntExemplar) XXX_Unmarshal(b []byte) error
- type IntGauge
- func (*IntGauge) Descriptor() ([]byte, []int)
- func (m *IntGauge) GetDataPoints() []*IntDataPoint
- func (m *IntGauge) Marshal() (dAtA []byte, err error)
- func (m *IntGauge) MarshalTo(dAtA []byte) (int, error)
- func (m *IntGauge) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IntGauge) ProtoMessage()
- func (m *IntGauge) Reset()
- func (m *IntGauge) Size() (n int)
- func (m *IntGauge) String() string
- func (m *IntGauge) Unmarshal(dAtA []byte) error
- func (m *IntGauge) XXX_DiscardUnknown()
- func (m *IntGauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IntGauge) XXX_Merge(src proto.Message)
- func (m *IntGauge) XXX_Size() int
- func (m *IntGauge) XXX_Unmarshal(b []byte) error
- type IntHistogram
- func (*IntHistogram) Descriptor() ([]byte, []int)
- func (m *IntHistogram) GetAggregationTemporality() AggregationTemporality
- func (m *IntHistogram) GetDataPoints() []*IntHistogramDataPoint
- func (m *IntHistogram) Marshal() (dAtA []byte, err error)
- func (m *IntHistogram) MarshalTo(dAtA []byte) (int, error)
- func (m *IntHistogram) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IntHistogram) ProtoMessage()
- func (m *IntHistogram) Reset()
- func (m *IntHistogram) Size() (n int)
- func (m *IntHistogram) String() string
- func (m *IntHistogram) Unmarshal(dAtA []byte) error
- func (m *IntHistogram) XXX_DiscardUnknown()
- func (m *IntHistogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IntHistogram) XXX_Merge(src proto.Message)
- func (m *IntHistogram) XXX_Size() int
- func (m *IntHistogram) XXX_Unmarshal(b []byte) error
- type IntHistogramDataPoint
- func (*IntHistogramDataPoint) Descriptor() ([]byte, []int)
- func (m *IntHistogramDataPoint) GetBucketCounts() []uint64
- func (m *IntHistogramDataPoint) GetCount() uint64
- func (m *IntHistogramDataPoint) GetExemplars() []*IntExemplar
- func (m *IntHistogramDataPoint) GetExplicitBounds() []float64
- func (m *IntHistogramDataPoint) GetLabels() []v11.StringKeyValue
- func (m *IntHistogramDataPoint) GetStartTimeUnixNano() uint64
- func (m *IntHistogramDataPoint) GetSum() int64
- func (m *IntHistogramDataPoint) GetTimeUnixNano() uint64
- func (m *IntHistogramDataPoint) Marshal() (dAtA []byte, err error)
- func (m *IntHistogramDataPoint) MarshalTo(dAtA []byte) (int, error)
- func (m *IntHistogramDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IntHistogramDataPoint) ProtoMessage()
- func (m *IntHistogramDataPoint) Reset()
- func (m *IntHistogramDataPoint) Size() (n int)
- func (m *IntHistogramDataPoint) String() string
- func (m *IntHistogramDataPoint) Unmarshal(dAtA []byte) error
- func (m *IntHistogramDataPoint) XXX_DiscardUnknown()
- func (m *IntHistogramDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IntHistogramDataPoint) XXX_Merge(src proto.Message)
- func (m *IntHistogramDataPoint) XXX_Size() int
- func (m *IntHistogramDataPoint) XXX_Unmarshal(b []byte) error
- type IntSum
- func (*IntSum) Descriptor() ([]byte, []int)
- func (m *IntSum) GetAggregationTemporality() AggregationTemporality
- func (m *IntSum) GetDataPoints() []*IntDataPoint
- func (m *IntSum) GetIsMonotonic() bool
- func (m *IntSum) Marshal() (dAtA []byte, err error)
- func (m *IntSum) MarshalTo(dAtA []byte) (int, error)
- func (m *IntSum) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IntSum) ProtoMessage()
- func (m *IntSum) Reset()
- func (m *IntSum) Size() (n int)
- func (m *IntSum) String() string
- func (m *IntSum) Unmarshal(dAtA []byte) error
- func (m *IntSum) XXX_DiscardUnknown()
- func (m *IntSum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IntSum) XXX_Merge(src proto.Message)
- func (m *IntSum) XXX_Size() int
- func (m *IntSum) XXX_Unmarshal(b []byte) error
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)
- func (m *Metric) GetData() isMetric_Data
- func (m *Metric) GetDescription() string
- func (m *Metric) GetDoubleGauge() *DoubleGauge
- func (m *Metric) GetDoubleHistogram() *DoubleHistogram
- func (m *Metric) GetDoubleSum() *DoubleSum
- func (m *Metric) GetDoubleSummary() *DoubleSummary
- func (m *Metric) GetIntGauge() *IntGauge
- func (m *Metric) GetIntHistogram() *IntHistogram
- func (m *Metric) GetIntSum() *IntSum
- func (m *Metric) GetName() string
- func (m *Metric) GetUnit() string
- 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 (*Metric) XXX_OneofWrappers() []interface{}
- func (m *Metric) XXX_Size() int
- func (m *Metric) XXX_Unmarshal(b []byte) error
- type Metric_DoubleGauge
- type Metric_DoubleHistogram
- type Metric_DoubleSum
- type Metric_DoubleSummary
- type Metric_IntGauge
- type Metric_IntHistogram
- type Metric_IntSum
- type ResourceMetrics
- func (*ResourceMetrics) Descriptor() ([]byte, []int)
- func (m *ResourceMetrics) GetInstrumentationLibraryMetrics() []*InstrumentationLibraryMetrics
- func (m *ResourceMetrics) GetResource() v1.Resource
- func (m *ResourceMetrics) Marshal() (dAtA []byte, err error)
- func (m *ResourceMetrics) MarshalTo(dAtA []byte) (int, error)
- func (m *ResourceMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResourceMetrics) ProtoMessage()
- func (m *ResourceMetrics) Reset()
- func (m *ResourceMetrics) Size() (n int)
- func (m *ResourceMetrics) String() string
- func (m *ResourceMetrics) Unmarshal(dAtA []byte) error
- func (m *ResourceMetrics) XXX_DiscardUnknown()
- func (m *ResourceMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceMetrics) XXX_Merge(src proto.Message)
- func (m *ResourceMetrics) XXX_Size() int
- func (m *ResourceMetrics) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthMetrics = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMetrics = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMetrics = fmt.Errorf("proto: unexpected end of group") )
var AggregationTemporality_name = map[int32]string{
0: "AGGREGATION_TEMPORALITY_UNSPECIFIED",
1: "AGGREGATION_TEMPORALITY_DELTA",
2: "AGGREGATION_TEMPORALITY_CUMULATIVE",
}
var AggregationTemporality_value = map[string]int32{
"AGGREGATION_TEMPORALITY_UNSPECIFIED": 0,
"AGGREGATION_TEMPORALITY_DELTA": 1,
"AGGREGATION_TEMPORALITY_CUMULATIVE": 2,
}
Functions ¶
This section is empty.
Types ¶
type AggregationTemporality ¶ added in v0.10.0
type AggregationTemporality int32
AggregationTemporality defines how a metric aggregator reports aggregated values. It describes how those values relate to the time interval over which they are aggregated.
const ( // UNSPECIFIED is the default AggregationTemporality, it MUST not be used. AggregationTemporality_AGGREGATION_TEMPORALITY_UNSPECIFIED AggregationTemporality = 0 // DELTA is an AggregationTemporality for a metric aggregator which reports // changes since last report time. Successive metrics contain aggregation of // values from continuous and non-overlapping intervals. // // The values for a DELTA metric are based only on the time interval // associated with one measurement cycle. There is no dependency on // previous measurements like is the case for CUMULATIVE metrics. // // For example, consider a system measuring the number of requests that // it receives and reports the sum of these requests every second as a // DELTA metric: // // 1. The system starts receiving at time=t_0. // 2. A request is received, the system measures 1 request. // 3. A request is received, the system measures 1 request. // 4. A request is received, the system measures 1 request. // 5. The 1 second collection cycle ends. A metric is exported for the // number of requests received over the interval of time t_0 to // t_0+1 with a value of 3. // 6. A request is received, the system measures 1 request. // 7. A request is received, the system measures 1 request. // 8. The 1 second collection cycle ends. A metric is exported for the // number of requests received over the interval of time t_0+1 to // t_0+2 with a value of 2. AggregationTemporality_AGGREGATION_TEMPORALITY_DELTA AggregationTemporality = 1 // CUMULATIVE is an AggregationTemporality for a metric aggregator which // reports changes since a fixed start time. This means that current values // of a CUMULATIVE metric depend on all previous measurements since the // start time. Because of this, the sender is required to retain this state // in some form. If this state is lost or invalidated, the CUMULATIVE metric // values MUST be reset and a new fixed start time following the last // reported measurement time sent MUST be used. // // For example, consider a system measuring the number of requests that // it receives and reports the sum of these requests every second as a // CUMULATIVE metric: // // 1. The system starts receiving at time=t_0. // 2. A request is received, the system measures 1 request. // 3. A request is received, the system measures 1 request. // 4. A request is received, the system measures 1 request. // 5. The 1 second collection cycle ends. A metric is exported for the // number of requests received over the interval of time t_0 to // t_0+1 with a value of 3. // 6. A request is received, the system measures 1 request. // 7. A request is received, the system measures 1 request. // 8. The 1 second collection cycle ends. A metric is exported for the // number of requests received over the interval of time t_0 to // t_0+2 with a value of 5. // 9. The system experiences a fault and loses state. // 10. The system recovers and resumes receiving at time=t_1. // 11. A request is received, the system measures 1 request. // 12. The 1 second collection cycle ends. A metric is exported for the // number of requests received over the interval of time t_1 to // t_0+1 with a value of 1. // // Note: Even though, when reporting changes since last report time, using // CUMULATIVE is valid, it is not recommended. This may cause problems for // systems that do not use start_time to determine when the aggregation // value was reset (e.g. Prometheus). AggregationTemporality_AGGREGATION_TEMPORALITY_CUMULATIVE AggregationTemporality = 2 )
func (AggregationTemporality) EnumDescriptor ¶ added in v0.10.0
func (AggregationTemporality) EnumDescriptor() ([]byte, []int)
func (AggregationTemporality) String ¶ added in v0.10.0
func (x AggregationTemporality) String() string
type DoubleDataPoint ¶
type DoubleDataPoint struct { // The set of labels that uniquely identify this timeseries. Labels []v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels"` // start_time_unix_nano is the last time when the aggregation value was reset // to "zero". For some metric types this is ignored, see data types for more // details. // // The aggregation value is over the time interval (start_time_unix_nano, // time_unix_nano]. // // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January // 1970. // // Value of 0 indicates that the timestamp is unspecified. In that case the // timestamp may be decided by the backend. StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` // time_unix_nano is the moment when this aggregation value was reported. // // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January // 1970. TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // value itself. Value float64 `protobuf:"fixed64,4,opt,name=value,proto3" json:"value,omitempty"` // (Optional) List of exemplars collected from // measurements that were used to form the data point Exemplars []*DoubleExemplar `protobuf:"bytes,5,rep,name=exemplars,proto3" json:"exemplars,omitempty"` }
DoubleDataPoint is a single data point in a timeseries that describes the time-varying value of a double metric.
func (*DoubleDataPoint) Descriptor ¶
func (*DoubleDataPoint) Descriptor() ([]byte, []int)
func (*DoubleDataPoint) GetExemplars ¶ added in v0.10.0
func (m *DoubleDataPoint) GetExemplars() []*DoubleExemplar
func (*DoubleDataPoint) GetLabels ¶
func (m *DoubleDataPoint) GetLabels() []v11.StringKeyValue
func (*DoubleDataPoint) GetStartTimeUnixNano ¶
func (m *DoubleDataPoint) GetStartTimeUnixNano() uint64
func (*DoubleDataPoint) GetTimeUnixNano ¶
func (m *DoubleDataPoint) GetTimeUnixNano() uint64
func (*DoubleDataPoint) GetValue ¶
func (m *DoubleDataPoint) GetValue() float64
func (*DoubleDataPoint) Marshal ¶
func (m *DoubleDataPoint) Marshal() (dAtA []byte, err error)
func (*DoubleDataPoint) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *DoubleDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DoubleDataPoint) ProtoMessage ¶
func (*DoubleDataPoint) ProtoMessage()
func (*DoubleDataPoint) Reset ¶
func (m *DoubleDataPoint) Reset()
func (*DoubleDataPoint) Size ¶
func (m *DoubleDataPoint) Size() (n int)
func (*DoubleDataPoint) String ¶
func (m *DoubleDataPoint) String() string
func (*DoubleDataPoint) Unmarshal ¶
func (m *DoubleDataPoint) Unmarshal(dAtA []byte) error
func (*DoubleDataPoint) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *DoubleDataPoint) XXX_DiscardUnknown()
func (*DoubleDataPoint) XXX_Marshal ¶ added in v0.5.0
func (m *DoubleDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DoubleDataPoint) XXX_Merge ¶ added in v0.5.0
func (m *DoubleDataPoint) XXX_Merge(src proto.Message)
func (*DoubleDataPoint) XXX_Size ¶ added in v0.5.0
func (m *DoubleDataPoint) XXX_Size() int
func (*DoubleDataPoint) XXX_Unmarshal ¶ added in v0.5.0
func (m *DoubleDataPoint) XXX_Unmarshal(b []byte) error
type DoubleExemplar ¶ added in v0.10.0
type DoubleExemplar struct { // The set of labels that were filtered out by the aggregator, but recorded // alongside the original measurement. Only labels that were filtered out // by the aggregator should be included FilteredLabels []v11.StringKeyValue `protobuf:"bytes,1,rep,name=filtered_labels,json=filteredLabels,proto3" json:"filtered_labels"` // time_unix_nano is the exact time when this exemplar was recorded // // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January // 1970. TimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // Numerical double value of the measurement that was recorded. Value float64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` // (Optional) Span ID of the exemplar trace. // span_id may be missing if the measurement is not recorded inside a trace // or if the trace is not sampled. SpanId go_opentelemetry_io_collector_internal_data.SpanID `` /* 131-byte string literal not displayed */ // (Optional) Trace ID of the exemplar trace. // trace_id may be missing if the measurement is not recorded inside a trace // or if the trace is not sampled. TraceId go_opentelemetry_io_collector_internal_data.TraceID `` /* 135-byte string literal not displayed */ }
A representation of an exemplar, which is a sample input double measurement. Exemplars also hold information about the environment when the measurement was recorded, for example the span and trace ID of the active span when the exemplar was recorded.
func (*DoubleExemplar) Descriptor ¶ added in v0.10.0
func (*DoubleExemplar) Descriptor() ([]byte, []int)
func (*DoubleExemplar) GetFilteredLabels ¶ added in v0.10.0
func (m *DoubleExemplar) GetFilteredLabels() []v11.StringKeyValue
func (*DoubleExemplar) GetTimeUnixNano ¶ added in v0.10.0
func (m *DoubleExemplar) GetTimeUnixNano() uint64
func (*DoubleExemplar) GetValue ¶ added in v0.10.0
func (m *DoubleExemplar) GetValue() float64
func (*DoubleExemplar) Marshal ¶ added in v0.10.0
func (m *DoubleExemplar) Marshal() (dAtA []byte, err error)
func (*DoubleExemplar) MarshalTo ¶ added in v0.10.0
func (m *DoubleExemplar) MarshalTo(dAtA []byte) (int, error)
func (*DoubleExemplar) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *DoubleExemplar) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DoubleExemplar) ProtoMessage ¶ added in v0.10.0
func (*DoubleExemplar) ProtoMessage()
func (*DoubleExemplar) Reset ¶ added in v0.10.0
func (m *DoubleExemplar) Reset()
func (*DoubleExemplar) Size ¶ added in v0.10.0
func (m *DoubleExemplar) Size() (n int)
func (*DoubleExemplar) String ¶ added in v0.10.0
func (m *DoubleExemplar) String() string
func (*DoubleExemplar) Unmarshal ¶ added in v0.10.0
func (m *DoubleExemplar) Unmarshal(dAtA []byte) error
func (*DoubleExemplar) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *DoubleExemplar) XXX_DiscardUnknown()
func (*DoubleExemplar) XXX_Marshal ¶ added in v0.10.0
func (m *DoubleExemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DoubleExemplar) XXX_Merge ¶ added in v0.10.0
func (m *DoubleExemplar) XXX_Merge(src proto.Message)
func (*DoubleExemplar) XXX_Size ¶ added in v0.10.0
func (m *DoubleExemplar) XXX_Size() int
func (*DoubleExemplar) XXX_Unmarshal ¶ added in v0.10.0
func (m *DoubleExemplar) XXX_Unmarshal(b []byte) error
type DoubleGauge ¶ added in v0.10.0
type DoubleGauge struct {
DataPoints []*DoubleDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"`
}
Gauge represents the type of a double scalar metric that always exports the "current value" for every data point. It should be used for an "unknown" aggregation.
A Gauge does not support different aggregation temporalities. Given the aggregation is unknown, points cannot be combined using the same aggregation, regardless of aggregation temporalities. Therefore, AggregationTemporality is not included. Consequently, this also means "StartTimeUnixNano" is ignored for all data points.
func (*DoubleGauge) Descriptor ¶ added in v0.10.0
func (*DoubleGauge) Descriptor() ([]byte, []int)
func (*DoubleGauge) GetDataPoints ¶ added in v0.10.0
func (m *DoubleGauge) GetDataPoints() []*DoubleDataPoint
func (*DoubleGauge) Marshal ¶ added in v0.10.0
func (m *DoubleGauge) Marshal() (dAtA []byte, err error)
func (*DoubleGauge) MarshalTo ¶ added in v0.10.0
func (m *DoubleGauge) MarshalTo(dAtA []byte) (int, error)
func (*DoubleGauge) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *DoubleGauge) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DoubleGauge) ProtoMessage ¶ added in v0.10.0
func (*DoubleGauge) ProtoMessage()
func (*DoubleGauge) Reset ¶ added in v0.10.0
func (m *DoubleGauge) Reset()
func (*DoubleGauge) Size ¶ added in v0.10.0
func (m *DoubleGauge) Size() (n int)
func (*DoubleGauge) String ¶ added in v0.10.0
func (m *DoubleGauge) String() string
func (*DoubleGauge) Unmarshal ¶ added in v0.10.0
func (m *DoubleGauge) Unmarshal(dAtA []byte) error
func (*DoubleGauge) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *DoubleGauge) XXX_DiscardUnknown()
func (*DoubleGauge) XXX_Marshal ¶ added in v0.10.0
func (m *DoubleGauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DoubleGauge) XXX_Merge ¶ added in v0.10.0
func (m *DoubleGauge) XXX_Merge(src proto.Message)
func (*DoubleGauge) XXX_Size ¶ added in v0.10.0
func (m *DoubleGauge) XXX_Size() int
func (*DoubleGauge) XXX_Unmarshal ¶ added in v0.10.0
func (m *DoubleGauge) XXX_Unmarshal(b []byte) error
type DoubleHistogram ¶ added in v0.10.0
type DoubleHistogram struct { DataPoints []*DoubleHistogramDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"` // aggregation_temporality describes if the aggregator reports delta changes // since last report time, or cumulative changes since a fixed start time. AggregationTemporality AggregationTemporality `` /* 187-byte string literal not displayed */ }
Represents the type of a metric that is calculated by aggregating as a Histogram of all reported double measurements over a time interval.
func (*DoubleHistogram) Descriptor ¶ added in v0.10.0
func (*DoubleHistogram) Descriptor() ([]byte, []int)
func (*DoubleHistogram) GetAggregationTemporality ¶ added in v0.10.0
func (m *DoubleHistogram) GetAggregationTemporality() AggregationTemporality
func (*DoubleHistogram) GetDataPoints ¶ added in v0.10.0
func (m *DoubleHistogram) GetDataPoints() []*DoubleHistogramDataPoint
func (*DoubleHistogram) Marshal ¶ added in v0.10.0
func (m *DoubleHistogram) Marshal() (dAtA []byte, err error)
func (*DoubleHistogram) MarshalTo ¶ added in v0.10.0
func (m *DoubleHistogram) MarshalTo(dAtA []byte) (int, error)
func (*DoubleHistogram) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *DoubleHistogram) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DoubleHistogram) ProtoMessage ¶ added in v0.10.0
func (*DoubleHistogram) ProtoMessage()
func (*DoubleHistogram) Reset ¶ added in v0.10.0
func (m *DoubleHistogram) Reset()
func (*DoubleHistogram) Size ¶ added in v0.10.0
func (m *DoubleHistogram) Size() (n int)
func (*DoubleHistogram) String ¶ added in v0.10.0
func (m *DoubleHistogram) String() string
func (*DoubleHistogram) Unmarshal ¶ added in v0.10.0
func (m *DoubleHistogram) Unmarshal(dAtA []byte) error
func (*DoubleHistogram) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *DoubleHistogram) XXX_DiscardUnknown()
func (*DoubleHistogram) XXX_Marshal ¶ added in v0.10.0
func (m *DoubleHistogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DoubleHistogram) XXX_Merge ¶ added in v0.10.0
func (m *DoubleHistogram) XXX_Merge(src proto.Message)
func (*DoubleHistogram) XXX_Size ¶ added in v0.10.0
func (m *DoubleHistogram) XXX_Size() int
func (*DoubleHistogram) XXX_Unmarshal ¶ added in v0.10.0
func (m *DoubleHistogram) XXX_Unmarshal(b []byte) error
type DoubleHistogramDataPoint ¶ added in v0.10.0
type DoubleHistogramDataPoint struct { // The set of labels that uniquely identify this timeseries. Labels []v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels"` // start_time_unix_nano is the last time when the aggregation value was reset // to "zero". For some metric types this is ignored, see data types for more // details. // // The aggregation value is over the time interval (start_time_unix_nano, // time_unix_nano]. // // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January // 1970. // // Value of 0 indicates that the timestamp is unspecified. In that case the // timestamp may be decided by the backend. StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` // time_unix_nano is the moment when this aggregation value was reported. // // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January // 1970. TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // count is the number of values in the population. Must be non-negative. This // value must be equal to the sum of the "count" fields in buckets if a // histogram is provided. Count uint64 `protobuf:"fixed64,4,opt,name=count,proto3" json:"count,omitempty"` // sum of the values in the population. If count is zero then this field // must be zero. This value must be equal to the sum of the "sum" fields in // buckets if a histogram is provided. Sum float64 `protobuf:"fixed64,5,opt,name=sum,proto3" json:"sum,omitempty"` // bucket_counts is an optional field contains the count values of histogram // for each bucket. // // The sum of the bucket_counts must equal the value in the count field. // // The number of elements in bucket_counts array must be by one greater than // the number of elements in explicit_bounds array. BucketCounts []uint64 `protobuf:"fixed64,6,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"` // explicit_bounds specifies buckets with explicitly defined bounds for values. // The bucket boundaries are described by "bounds" field. // // This defines size(bounds) + 1 (= N) buckets. The boundaries for bucket // at index i are: // // (-infinity, bounds[i]) for i == 0 // [bounds[i-1], bounds[i]) for 0 < i < N-1 // [bounds[i], +infinity) for i == N-1 // The values in bounds array must be strictly increasing. // // Note: only [a, b) intervals are currently supported for each bucket except the first one. // If we decide to also support (a, b] intervals we should add support for these by defining // a boolean value which decides what type of intervals to use. ExplicitBounds []float64 `protobuf:"fixed64,7,rep,packed,name=explicit_bounds,json=explicitBounds,proto3" json:"explicit_bounds,omitempty"` // (Optional) List of exemplars collected from // measurements that were used to form the data point Exemplars []*DoubleExemplar `protobuf:"bytes,8,rep,name=exemplars,proto3" json:"exemplars,omitempty"` }
HistogramDataPoint is a single data point in a timeseries that describes the time-varying values of a Histogram of double values. A Histogram contains summary statistics for a population of values, it may optionally contain the distribution of those values across a set of buckets.
func (*DoubleHistogramDataPoint) Descriptor ¶ added in v0.10.0
func (*DoubleHistogramDataPoint) Descriptor() ([]byte, []int)
func (*DoubleHistogramDataPoint) GetBucketCounts ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) GetBucketCounts() []uint64
func (*DoubleHistogramDataPoint) GetCount ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) GetCount() uint64
func (*DoubleHistogramDataPoint) GetExemplars ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) GetExemplars() []*DoubleExemplar
func (*DoubleHistogramDataPoint) GetExplicitBounds ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) GetExplicitBounds() []float64
func (*DoubleHistogramDataPoint) GetLabels ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) GetLabels() []v11.StringKeyValue
func (*DoubleHistogramDataPoint) GetStartTimeUnixNano ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) GetStartTimeUnixNano() uint64
func (*DoubleHistogramDataPoint) GetSum ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) GetSum() float64
func (*DoubleHistogramDataPoint) GetTimeUnixNano ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) GetTimeUnixNano() uint64
func (*DoubleHistogramDataPoint) Marshal ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) Marshal() (dAtA []byte, err error)
func (*DoubleHistogramDataPoint) MarshalTo ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) MarshalTo(dAtA []byte) (int, error)
func (*DoubleHistogramDataPoint) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DoubleHistogramDataPoint) ProtoMessage ¶ added in v0.10.0
func (*DoubleHistogramDataPoint) ProtoMessage()
func (*DoubleHistogramDataPoint) Reset ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) Reset()
func (*DoubleHistogramDataPoint) Size ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) Size() (n int)
func (*DoubleHistogramDataPoint) String ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) String() string
func (*DoubleHistogramDataPoint) Unmarshal ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) Unmarshal(dAtA []byte) error
func (*DoubleHistogramDataPoint) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) XXX_DiscardUnknown()
func (*DoubleHistogramDataPoint) XXX_Marshal ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DoubleHistogramDataPoint) XXX_Merge ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) XXX_Merge(src proto.Message)
func (*DoubleHistogramDataPoint) XXX_Size ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) XXX_Size() int
func (*DoubleHistogramDataPoint) XXX_Unmarshal ¶ added in v0.10.0
func (m *DoubleHistogramDataPoint) XXX_Unmarshal(b []byte) error
type DoubleSum ¶ added in v0.10.0
type DoubleSum struct { DataPoints []*DoubleDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"` // aggregation_temporality describes if the aggregator reports delta changes // since last report time, or cumulative changes since a fixed start time. AggregationTemporality AggregationTemporality `` /* 187-byte string literal not displayed */ // If "true" means that the sum is monotonic. IsMonotonic bool `protobuf:"varint,3,opt,name=is_monotonic,json=isMonotonic,proto3" json:"is_monotonic,omitempty"` }
Sum represents the type of a numeric double scalar metric that is calculated as a sum of all reported measurements over a time interval.
func (*DoubleSum) Descriptor ¶ added in v0.10.0
func (*DoubleSum) GetAggregationTemporality ¶ added in v0.10.0
func (m *DoubleSum) GetAggregationTemporality() AggregationTemporality
func (*DoubleSum) GetDataPoints ¶ added in v0.10.0
func (m *DoubleSum) GetDataPoints() []*DoubleDataPoint
func (*DoubleSum) GetIsMonotonic ¶ added in v0.10.0
func (*DoubleSum) MarshalToSizedBuffer ¶ added in v0.10.0
func (*DoubleSum) ProtoMessage ¶ added in v0.10.0
func (*DoubleSum) ProtoMessage()
func (*DoubleSum) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *DoubleSum) XXX_DiscardUnknown()
func (*DoubleSum) XXX_Marshal ¶ added in v0.10.0
func (*DoubleSum) XXX_Unmarshal ¶ added in v0.10.0
type DoubleSummary ¶ added in v0.15.0
type DoubleSummary struct {
DataPoints []*DoubleSummaryDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"`
}
DoubleSummary metric data are used to convey quantile summaries, a Prometheus (see: https://prometheus.io/docs/concepts/metric_types/#summary) and OpenMetrics (see: https://github.com/OpenObservability/OpenMetrics/blob/4dbf6075567ab43296eed941037c12951faafb92/protos/prometheus.proto#L45) data type. These data points cannot always be merged in a meaningful way. While they can be useful in some applications, histogram data points are recommended for new applications.
func (*DoubleSummary) Descriptor ¶ added in v0.15.0
func (*DoubleSummary) Descriptor() ([]byte, []int)
func (*DoubleSummary) GetDataPoints ¶ added in v0.15.0
func (m *DoubleSummary) GetDataPoints() []*DoubleSummaryDataPoint
func (*DoubleSummary) Marshal ¶ added in v0.15.0
func (m *DoubleSummary) Marshal() (dAtA []byte, err error)
func (*DoubleSummary) MarshalTo ¶ added in v0.15.0
func (m *DoubleSummary) MarshalTo(dAtA []byte) (int, error)
func (*DoubleSummary) MarshalToSizedBuffer ¶ added in v0.15.0
func (m *DoubleSummary) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DoubleSummary) ProtoMessage ¶ added in v0.15.0
func (*DoubleSummary) ProtoMessage()
func (*DoubleSummary) Reset ¶ added in v0.15.0
func (m *DoubleSummary) Reset()
func (*DoubleSummary) Size ¶ added in v0.15.0
func (m *DoubleSummary) Size() (n int)
func (*DoubleSummary) String ¶ added in v0.15.0
func (m *DoubleSummary) String() string
func (*DoubleSummary) Unmarshal ¶ added in v0.15.0
func (m *DoubleSummary) Unmarshal(dAtA []byte) error
func (*DoubleSummary) XXX_DiscardUnknown ¶ added in v0.15.0
func (m *DoubleSummary) XXX_DiscardUnknown()
func (*DoubleSummary) XXX_Marshal ¶ added in v0.15.0
func (m *DoubleSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DoubleSummary) XXX_Merge ¶ added in v0.15.0
func (m *DoubleSummary) XXX_Merge(src proto.Message)
func (*DoubleSummary) XXX_Size ¶ added in v0.15.0
func (m *DoubleSummary) XXX_Size() int
func (*DoubleSummary) XXX_Unmarshal ¶ added in v0.15.0
func (m *DoubleSummary) XXX_Unmarshal(b []byte) error
type DoubleSummaryDataPoint ¶ added in v0.15.0
type DoubleSummaryDataPoint struct { // The set of labels that uniquely identify this timeseries. Labels []v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels"` // start_time_unix_nano is the last time when the aggregation value was reset // to "zero". For some metric types this is ignored, see data types for more // details. // // The aggregation value is over the time interval (start_time_unix_nano, // time_unix_nano]. // // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January // 1970. // // Value of 0 indicates that the timestamp is unspecified. In that case the // timestamp may be decided by the backend. StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` // time_unix_nano is the moment when this aggregation value was reported. // // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January // 1970. TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // count is the number of values in the population. Must be non-negative. Count uint64 `protobuf:"fixed64,4,opt,name=count,proto3" json:"count,omitempty"` // sum of the values in the population. If count is zero then this field // must be zero. Sum float64 `protobuf:"fixed64,5,opt,name=sum,proto3" json:"sum,omitempty"` // (Optional) list of values at different quantiles of the distribution calculated // from the current snapshot. The quantiles must be strictly increasing. QuantileValues []*DoubleSummaryDataPoint_ValueAtQuantile `protobuf:"bytes,6,rep,name=quantile_values,json=quantileValues,proto3" json:"quantile_values,omitempty"` }
DoubleSummaryDataPoint is a single data point in a timeseries that describes the time-varying values of a Summary metric.
func (*DoubleSummaryDataPoint) Descriptor ¶ added in v0.15.0
func (*DoubleSummaryDataPoint) Descriptor() ([]byte, []int)
func (*DoubleSummaryDataPoint) GetCount ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) GetCount() uint64
func (*DoubleSummaryDataPoint) GetLabels ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) GetLabels() []v11.StringKeyValue
func (*DoubleSummaryDataPoint) GetQuantileValues ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) GetQuantileValues() []*DoubleSummaryDataPoint_ValueAtQuantile
func (*DoubleSummaryDataPoint) GetStartTimeUnixNano ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) GetStartTimeUnixNano() uint64
func (*DoubleSummaryDataPoint) GetSum ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) GetSum() float64
func (*DoubleSummaryDataPoint) GetTimeUnixNano ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) GetTimeUnixNano() uint64
func (*DoubleSummaryDataPoint) Marshal ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) Marshal() (dAtA []byte, err error)
func (*DoubleSummaryDataPoint) MarshalTo ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) MarshalTo(dAtA []byte) (int, error)
func (*DoubleSummaryDataPoint) MarshalToSizedBuffer ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DoubleSummaryDataPoint) ProtoMessage ¶ added in v0.15.0
func (*DoubleSummaryDataPoint) ProtoMessage()
func (*DoubleSummaryDataPoint) Reset ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) Reset()
func (*DoubleSummaryDataPoint) Size ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) Size() (n int)
func (*DoubleSummaryDataPoint) String ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) String() string
func (*DoubleSummaryDataPoint) Unmarshal ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) Unmarshal(dAtA []byte) error
func (*DoubleSummaryDataPoint) XXX_DiscardUnknown ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) XXX_DiscardUnknown()
func (*DoubleSummaryDataPoint) XXX_Marshal ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DoubleSummaryDataPoint) XXX_Merge ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) XXX_Merge(src proto.Message)
func (*DoubleSummaryDataPoint) XXX_Size ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) XXX_Size() int
func (*DoubleSummaryDataPoint) XXX_Unmarshal ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint) XXX_Unmarshal(b []byte) error
type DoubleSummaryDataPoint_ValueAtQuantile ¶ added in v0.15.0
type DoubleSummaryDataPoint_ValueAtQuantile struct { // The quantile of a distribution. Must be in the interval // [0.0, 1.0]. Quantile float64 `protobuf:"fixed64,1,opt,name=quantile,proto3" json:"quantile,omitempty"` // The value at the given quantile of a distribution. Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` }
Represents the value at a given quantile of a distribution.
To record Min and Max values following conventions are used: - The 1.0 quantile is equivalent to the maximum value observed. - The 0.0 quantile is equivalent to the minimum value observed.
See the following issue for more context: https://github.com/open-telemetry/opentelemetry-proto/issues/125
func (*DoubleSummaryDataPoint_ValueAtQuantile) Descriptor ¶ added in v0.15.0
func (*DoubleSummaryDataPoint_ValueAtQuantile) Descriptor() ([]byte, []int)
func (*DoubleSummaryDataPoint_ValueAtQuantile) GetQuantile ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint_ValueAtQuantile) GetQuantile() float64
func (*DoubleSummaryDataPoint_ValueAtQuantile) GetValue ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint_ValueAtQuantile) GetValue() float64
func (*DoubleSummaryDataPoint_ValueAtQuantile) Marshal ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint_ValueAtQuantile) Marshal() (dAtA []byte, err error)
func (*DoubleSummaryDataPoint_ValueAtQuantile) MarshalTo ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint_ValueAtQuantile) MarshalTo(dAtA []byte) (int, error)
func (*DoubleSummaryDataPoint_ValueAtQuantile) MarshalToSizedBuffer ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint_ValueAtQuantile) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DoubleSummaryDataPoint_ValueAtQuantile) ProtoMessage ¶ added in v0.15.0
func (*DoubleSummaryDataPoint_ValueAtQuantile) ProtoMessage()
func (*DoubleSummaryDataPoint_ValueAtQuantile) Reset ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint_ValueAtQuantile) Reset()
func (*DoubleSummaryDataPoint_ValueAtQuantile) Size ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint_ValueAtQuantile) Size() (n int)
func (*DoubleSummaryDataPoint_ValueAtQuantile) String ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint_ValueAtQuantile) String() string
func (*DoubleSummaryDataPoint_ValueAtQuantile) Unmarshal ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint_ValueAtQuantile) Unmarshal(dAtA []byte) error
func (*DoubleSummaryDataPoint_ValueAtQuantile) XXX_DiscardUnknown ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint_ValueAtQuantile) XXX_DiscardUnknown()
func (*DoubleSummaryDataPoint_ValueAtQuantile) XXX_Marshal ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint_ValueAtQuantile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DoubleSummaryDataPoint_ValueAtQuantile) XXX_Merge ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint_ValueAtQuantile) XXX_Merge(src proto.Message)
func (*DoubleSummaryDataPoint_ValueAtQuantile) XXX_Size ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint_ValueAtQuantile) XXX_Size() int
func (*DoubleSummaryDataPoint_ValueAtQuantile) XXX_Unmarshal ¶ added in v0.15.0
func (m *DoubleSummaryDataPoint_ValueAtQuantile) XXX_Unmarshal(b []byte) error
type InstrumentationLibraryMetrics ¶
type InstrumentationLibraryMetrics struct { // The instrumentation library information for the metrics in this message. // If this field is not set then no library info is known. InstrumentationLibrary v11.InstrumentationLibrary `protobuf:"bytes,1,opt,name=instrumentation_library,json=instrumentationLibrary,proto3" json:"instrumentation_library"` // A list of metrics that originate from an instrumentation library. Metrics []*Metric `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"` }
A collection of Metrics produced by an InstrumentationLibrary.
func (*InstrumentationLibraryMetrics) Descriptor ¶
func (*InstrumentationLibraryMetrics) Descriptor() ([]byte, []int)
func (*InstrumentationLibraryMetrics) GetInstrumentationLibrary ¶
func (m *InstrumentationLibraryMetrics) GetInstrumentationLibrary() v11.InstrumentationLibrary
func (*InstrumentationLibraryMetrics) GetMetrics ¶
func (m *InstrumentationLibraryMetrics) GetMetrics() []*Metric
func (*InstrumentationLibraryMetrics) Marshal ¶
func (m *InstrumentationLibraryMetrics) Marshal() (dAtA []byte, err error)
func (*InstrumentationLibraryMetrics) MarshalTo ¶
func (m *InstrumentationLibraryMetrics) MarshalTo(dAtA []byte) (int, error)
func (*InstrumentationLibraryMetrics) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *InstrumentationLibraryMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InstrumentationLibraryMetrics) ProtoMessage ¶
func (*InstrumentationLibraryMetrics) ProtoMessage()
func (*InstrumentationLibraryMetrics) Reset ¶
func (m *InstrumentationLibraryMetrics) Reset()
func (*InstrumentationLibraryMetrics) Size ¶
func (m *InstrumentationLibraryMetrics) Size() (n int)
func (*InstrumentationLibraryMetrics) String ¶
func (m *InstrumentationLibraryMetrics) String() string
func (*InstrumentationLibraryMetrics) Unmarshal ¶
func (m *InstrumentationLibraryMetrics) Unmarshal(dAtA []byte) error
func (*InstrumentationLibraryMetrics) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *InstrumentationLibraryMetrics) XXX_DiscardUnknown()
func (*InstrumentationLibraryMetrics) XXX_Marshal ¶ added in v0.5.0
func (m *InstrumentationLibraryMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InstrumentationLibraryMetrics) XXX_Merge ¶ added in v0.5.0
func (m *InstrumentationLibraryMetrics) XXX_Merge(src proto.Message)
func (*InstrumentationLibraryMetrics) XXX_Size ¶ added in v0.5.0
func (m *InstrumentationLibraryMetrics) XXX_Size() int
func (*InstrumentationLibraryMetrics) XXX_Unmarshal ¶ added in v0.5.0
func (m *InstrumentationLibraryMetrics) XXX_Unmarshal(b []byte) error
type IntDataPoint ¶ added in v0.10.0
type IntDataPoint struct { // The set of labels that uniquely identify this timeseries. Labels []v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels"` // start_time_unix_nano is the last time when the aggregation value was reset // to "zero". For some metric types this is ignored, see data types for more // details. // // The aggregation value is over the time interval (start_time_unix_nano, // time_unix_nano]. // // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January // 1970. // // Value of 0 indicates that the timestamp is unspecified. In that case the // timestamp may be decided by the backend. StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` // time_unix_nano is the moment when this aggregation value was reported. // // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January // 1970. TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // value itself. Value int64 `protobuf:"fixed64,4,opt,name=value,proto3" json:"value,omitempty"` // (Optional) List of exemplars collected from // measurements that were used to form the data point Exemplars []*IntExemplar `protobuf:"bytes,5,rep,name=exemplars,proto3" json:"exemplars,omitempty"` }
IntDataPoint is a single data point in a timeseries that describes the time-varying values of a int64 metric.
func (*IntDataPoint) Descriptor ¶ added in v0.10.0
func (*IntDataPoint) Descriptor() ([]byte, []int)
func (*IntDataPoint) GetExemplars ¶ added in v0.10.0
func (m *IntDataPoint) GetExemplars() []*IntExemplar
func (*IntDataPoint) GetLabels ¶ added in v0.10.0
func (m *IntDataPoint) GetLabels() []v11.StringKeyValue
func (*IntDataPoint) GetStartTimeUnixNano ¶ added in v0.10.0
func (m *IntDataPoint) GetStartTimeUnixNano() uint64
func (*IntDataPoint) GetTimeUnixNano ¶ added in v0.10.0
func (m *IntDataPoint) GetTimeUnixNano() uint64
func (*IntDataPoint) GetValue ¶ added in v0.10.0
func (m *IntDataPoint) GetValue() int64
func (*IntDataPoint) Marshal ¶ added in v0.10.0
func (m *IntDataPoint) Marshal() (dAtA []byte, err error)
func (*IntDataPoint) MarshalTo ¶ added in v0.10.0
func (m *IntDataPoint) MarshalTo(dAtA []byte) (int, error)
func (*IntDataPoint) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *IntDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IntDataPoint) ProtoMessage ¶ added in v0.10.0
func (*IntDataPoint) ProtoMessage()
func (*IntDataPoint) Reset ¶ added in v0.10.0
func (m *IntDataPoint) Reset()
func (*IntDataPoint) Size ¶ added in v0.10.0
func (m *IntDataPoint) Size() (n int)
func (*IntDataPoint) String ¶ added in v0.10.0
func (m *IntDataPoint) String() string
func (*IntDataPoint) Unmarshal ¶ added in v0.10.0
func (m *IntDataPoint) Unmarshal(dAtA []byte) error
func (*IntDataPoint) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *IntDataPoint) XXX_DiscardUnknown()
func (*IntDataPoint) XXX_Marshal ¶ added in v0.10.0
func (m *IntDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IntDataPoint) XXX_Merge ¶ added in v0.10.0
func (m *IntDataPoint) XXX_Merge(src proto.Message)
func (*IntDataPoint) XXX_Size ¶ added in v0.10.0
func (m *IntDataPoint) XXX_Size() int
func (*IntDataPoint) XXX_Unmarshal ¶ added in v0.10.0
func (m *IntDataPoint) XXX_Unmarshal(b []byte) error
type IntExemplar ¶ added in v0.10.0
type IntExemplar struct { // The set of labels that were filtered out by the aggregator, but recorded // alongside the original measurement. Only labels that were filtered out // by the aggregator should be included FilteredLabels []v11.StringKeyValue `protobuf:"bytes,1,rep,name=filtered_labels,json=filteredLabels,proto3" json:"filtered_labels"` // time_unix_nano is the exact time when this exemplar was recorded // // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January // 1970. TimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // Numerical int value of the measurement that was recorded. Value int64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` // (Optional) Span ID of the exemplar trace. // span_id may be missing if the measurement is not recorded inside a trace // or if the trace is not sampled. SpanId go_opentelemetry_io_collector_internal_data.SpanID `` /* 131-byte string literal not displayed */ // (Optional) Trace ID of the exemplar trace. // trace_id may be missing if the measurement is not recorded inside a trace // or if the trace is not sampled. TraceId go_opentelemetry_io_collector_internal_data.TraceID `` /* 135-byte string literal not displayed */ }
A representation of an exemplar, which is a sample input int measurement. Exemplars also hold information about the environment when the measurement was recorded, for example the span and trace ID of the active span when the exemplar was recorded.
func (*IntExemplar) Descriptor ¶ added in v0.10.0
func (*IntExemplar) Descriptor() ([]byte, []int)
func (*IntExemplar) GetFilteredLabels ¶ added in v0.10.0
func (m *IntExemplar) GetFilteredLabels() []v11.StringKeyValue
func (*IntExemplar) GetTimeUnixNano ¶ added in v0.10.0
func (m *IntExemplar) GetTimeUnixNano() uint64
func (*IntExemplar) GetValue ¶ added in v0.10.0
func (m *IntExemplar) GetValue() int64
func (*IntExemplar) Marshal ¶ added in v0.10.0
func (m *IntExemplar) Marshal() (dAtA []byte, err error)
func (*IntExemplar) MarshalTo ¶ added in v0.10.0
func (m *IntExemplar) MarshalTo(dAtA []byte) (int, error)
func (*IntExemplar) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *IntExemplar) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IntExemplar) ProtoMessage ¶ added in v0.10.0
func (*IntExemplar) ProtoMessage()
func (*IntExemplar) Reset ¶ added in v0.10.0
func (m *IntExemplar) Reset()
func (*IntExemplar) Size ¶ added in v0.10.0
func (m *IntExemplar) Size() (n int)
func (*IntExemplar) String ¶ added in v0.10.0
func (m *IntExemplar) String() string
func (*IntExemplar) Unmarshal ¶ added in v0.10.0
func (m *IntExemplar) Unmarshal(dAtA []byte) error
func (*IntExemplar) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *IntExemplar) XXX_DiscardUnknown()
func (*IntExemplar) XXX_Marshal ¶ added in v0.10.0
func (m *IntExemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IntExemplar) XXX_Merge ¶ added in v0.10.0
func (m *IntExemplar) XXX_Merge(src proto.Message)
func (*IntExemplar) XXX_Size ¶ added in v0.10.0
func (m *IntExemplar) XXX_Size() int
func (*IntExemplar) XXX_Unmarshal ¶ added in v0.10.0
func (m *IntExemplar) XXX_Unmarshal(b []byte) error
type IntGauge ¶ added in v0.10.0
type IntGauge struct {
DataPoints []*IntDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"`
}
Gauge represents the type of a int scalar metric that always exports the "current value" for every data point. It should be used for an "unknown" aggregation.
A Gauge does not support different aggregation temporalities. Given the aggregation is unknown, points cannot be combined using the same aggregation, regardless of aggregation temporalities. Therefore, AggregationTemporality is not included. Consequently, this also means "StartTimeUnixNano" is ignored for all data points.
func (*IntGauge) Descriptor ¶ added in v0.10.0
func (*IntGauge) GetDataPoints ¶ added in v0.10.0
func (m *IntGauge) GetDataPoints() []*IntDataPoint
func (*IntGauge) MarshalToSizedBuffer ¶ added in v0.10.0
func (*IntGauge) ProtoMessage ¶ added in v0.10.0
func (*IntGauge) ProtoMessage()
func (*IntGauge) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *IntGauge) XXX_DiscardUnknown()
func (*IntGauge) XXX_Marshal ¶ added in v0.10.0
func (*IntGauge) XXX_Unmarshal ¶ added in v0.10.0
type IntHistogram ¶ added in v0.10.0
type IntHistogram struct { DataPoints []*IntHistogramDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"` // aggregation_temporality describes if the aggregator reports delta changes // since last report time, or cumulative changes since a fixed start time. AggregationTemporality AggregationTemporality `` /* 187-byte string literal not displayed */ }
Represents the type of a metric that is calculated by aggregating as a Histogram of all reported int measurements over a time interval.
func (*IntHistogram) Descriptor ¶ added in v0.10.0
func (*IntHistogram) Descriptor() ([]byte, []int)
func (*IntHistogram) GetAggregationTemporality ¶ added in v0.10.0
func (m *IntHistogram) GetAggregationTemporality() AggregationTemporality
func (*IntHistogram) GetDataPoints ¶ added in v0.10.0
func (m *IntHistogram) GetDataPoints() []*IntHistogramDataPoint
func (*IntHistogram) Marshal ¶ added in v0.10.0
func (m *IntHistogram) Marshal() (dAtA []byte, err error)
func (*IntHistogram) MarshalTo ¶ added in v0.10.0
func (m *IntHistogram) MarshalTo(dAtA []byte) (int, error)
func (*IntHistogram) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *IntHistogram) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IntHistogram) ProtoMessage ¶ added in v0.10.0
func (*IntHistogram) ProtoMessage()
func (*IntHistogram) Reset ¶ added in v0.10.0
func (m *IntHistogram) Reset()
func (*IntHistogram) Size ¶ added in v0.10.0
func (m *IntHistogram) Size() (n int)
func (*IntHistogram) String ¶ added in v0.10.0
func (m *IntHistogram) String() string
func (*IntHistogram) Unmarshal ¶ added in v0.10.0
func (m *IntHistogram) Unmarshal(dAtA []byte) error
func (*IntHistogram) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *IntHistogram) XXX_DiscardUnknown()
func (*IntHistogram) XXX_Marshal ¶ added in v0.10.0
func (m *IntHistogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IntHistogram) XXX_Merge ¶ added in v0.10.0
func (m *IntHistogram) XXX_Merge(src proto.Message)
func (*IntHistogram) XXX_Size ¶ added in v0.10.0
func (m *IntHistogram) XXX_Size() int
func (*IntHistogram) XXX_Unmarshal ¶ added in v0.10.0
func (m *IntHistogram) XXX_Unmarshal(b []byte) error
type IntHistogramDataPoint ¶ added in v0.10.0
type IntHistogramDataPoint struct { // The set of labels that uniquely identify this timeseries. Labels []v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels"` // start_time_unix_nano is the last time when the aggregation value was reset // to "zero". For some metric types this is ignored, see data types for more // details. // // The aggregation value is over the time interval (start_time_unix_nano, // time_unix_nano]. // // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January // 1970. // // Value of 0 indicates that the timestamp is unspecified. In that case the // timestamp may be decided by the backend. StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` // time_unix_nano is the moment when this aggregation value was reported. // // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January // 1970. TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // count is the number of values in the population. Must be non-negative. This // value must be equal to the sum of the "count" fields in buckets if a // histogram is provided. Count uint64 `protobuf:"fixed64,4,opt,name=count,proto3" json:"count,omitempty"` // sum of the values in the population. If count is zero then this field // must be zero. This value must be equal to the sum of the "sum" fields in // buckets if a histogram is provided. Sum int64 `protobuf:"fixed64,5,opt,name=sum,proto3" json:"sum,omitempty"` // bucket_counts is an optional field contains the count values of histogram // for each bucket. // // The sum of the bucket_counts must equal the value in the count field. // // The number of elements in bucket_counts array must be by one greater than // the number of elements in explicit_bounds array. BucketCounts []uint64 `protobuf:"fixed64,6,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"` // explicit_bounds specifies buckets with explicitly defined bounds for values. // The bucket boundaries are described by "bounds" field. // // This defines size(bounds) + 1 (= N) buckets. The boundaries for bucket // at index i are: // // (-infinity, bounds[i]) for i == 0 // [bounds[i-1], bounds[i]) for 0 < i < N-1 // [bounds[i], +infinity) for i == N-1 // The values in bounds array must be strictly increasing. // // Note: only [a, b) intervals are currently supported for each bucket except the first one. // If we decide to also support (a, b] intervals we should add support for these by defining // a boolean value which decides what type of intervals to use. ExplicitBounds []float64 `protobuf:"fixed64,7,rep,packed,name=explicit_bounds,json=explicitBounds,proto3" json:"explicit_bounds,omitempty"` // (Optional) List of exemplars collected from // measurements that were used to form the data point Exemplars []*IntExemplar `protobuf:"bytes,8,rep,name=exemplars,proto3" json:"exemplars,omitempty"` }
IntHistogramDataPoint is a single data point in a timeseries that describes the time-varying values of a Histogram of int values. A Histogram contains summary statistics for a population of values, it may optionally contain the distribution of those values across a set of buckets.
func (*IntHistogramDataPoint) Descriptor ¶ added in v0.10.0
func (*IntHistogramDataPoint) Descriptor() ([]byte, []int)
func (*IntHistogramDataPoint) GetBucketCounts ¶ added in v0.10.0
func (m *IntHistogramDataPoint) GetBucketCounts() []uint64
func (*IntHistogramDataPoint) GetCount ¶ added in v0.10.0
func (m *IntHistogramDataPoint) GetCount() uint64
func (*IntHistogramDataPoint) GetExemplars ¶ added in v0.10.0
func (m *IntHistogramDataPoint) GetExemplars() []*IntExemplar
func (*IntHistogramDataPoint) GetExplicitBounds ¶ added in v0.10.0
func (m *IntHistogramDataPoint) GetExplicitBounds() []float64
func (*IntHistogramDataPoint) GetLabels ¶ added in v0.10.0
func (m *IntHistogramDataPoint) GetLabels() []v11.StringKeyValue
func (*IntHistogramDataPoint) GetStartTimeUnixNano ¶ added in v0.10.0
func (m *IntHistogramDataPoint) GetStartTimeUnixNano() uint64
func (*IntHistogramDataPoint) GetSum ¶ added in v0.10.0
func (m *IntHistogramDataPoint) GetSum() int64
func (*IntHistogramDataPoint) GetTimeUnixNano ¶ added in v0.10.0
func (m *IntHistogramDataPoint) GetTimeUnixNano() uint64
func (*IntHistogramDataPoint) Marshal ¶ added in v0.10.0
func (m *IntHistogramDataPoint) Marshal() (dAtA []byte, err error)
func (*IntHistogramDataPoint) MarshalTo ¶ added in v0.10.0
func (m *IntHistogramDataPoint) MarshalTo(dAtA []byte) (int, error)
func (*IntHistogramDataPoint) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *IntHistogramDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IntHistogramDataPoint) ProtoMessage ¶ added in v0.10.0
func (*IntHistogramDataPoint) ProtoMessage()
func (*IntHistogramDataPoint) Reset ¶ added in v0.10.0
func (m *IntHistogramDataPoint) Reset()
func (*IntHistogramDataPoint) Size ¶ added in v0.10.0
func (m *IntHistogramDataPoint) Size() (n int)
func (*IntHistogramDataPoint) String ¶ added in v0.10.0
func (m *IntHistogramDataPoint) String() string
func (*IntHistogramDataPoint) Unmarshal ¶ added in v0.10.0
func (m *IntHistogramDataPoint) Unmarshal(dAtA []byte) error
func (*IntHistogramDataPoint) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *IntHistogramDataPoint) XXX_DiscardUnknown()
func (*IntHistogramDataPoint) XXX_Marshal ¶ added in v0.10.0
func (m *IntHistogramDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IntHistogramDataPoint) XXX_Merge ¶ added in v0.10.0
func (m *IntHistogramDataPoint) XXX_Merge(src proto.Message)
func (*IntHistogramDataPoint) XXX_Size ¶ added in v0.10.0
func (m *IntHistogramDataPoint) XXX_Size() int
func (*IntHistogramDataPoint) XXX_Unmarshal ¶ added in v0.10.0
func (m *IntHistogramDataPoint) XXX_Unmarshal(b []byte) error
type IntSum ¶ added in v0.10.0
type IntSum struct { DataPoints []*IntDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"` // aggregation_temporality describes if the aggregator reports delta changes // since last report time, or cumulative changes since a fixed start time. AggregationTemporality AggregationTemporality `` /* 187-byte string literal not displayed */ // If "true" means that the sum is monotonic. IsMonotonic bool `protobuf:"varint,3,opt,name=is_monotonic,json=isMonotonic,proto3" json:"is_monotonic,omitempty"` }
Sum represents the type of a numeric int scalar metric that is calculated as a sum of all reported measurements over a time interval.
func (*IntSum) Descriptor ¶ added in v0.10.0
func (*IntSum) GetAggregationTemporality ¶ added in v0.10.0
func (m *IntSum) GetAggregationTemporality() AggregationTemporality
func (*IntSum) GetDataPoints ¶ added in v0.10.0
func (m *IntSum) GetDataPoints() []*IntDataPoint
func (*IntSum) GetIsMonotonic ¶ added in v0.10.0
func (*IntSum) MarshalToSizedBuffer ¶ added in v0.10.0
func (*IntSum) ProtoMessage ¶ added in v0.10.0
func (*IntSum) ProtoMessage()
func (*IntSum) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *IntSum) XXX_DiscardUnknown()
func (*IntSum) XXX_Marshal ¶ added in v0.10.0
func (*IntSum) XXX_Unmarshal ¶ added in v0.10.0
type Metric ¶
type Metric struct { // name of the metric, including its DNS name prefix. It must be unique. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // description of the metric, which can be used in documentation. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // unit in which the metric value is reported. Follows the format // described by http://unitsofmeasure.org/ucum.html. Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"` // Data determines the aggregation type (if any) of the metric, what is the // reported value type for the data points, as well as the relatationship to // the time interval over which they are reported. // // TODO: Update table after the decision on: // https://github.com/open-telemetry/opentelemetry-specification/issues/731. // By default, metrics recording using the OpenTelemetry API are exported as // (the table does not include MeasurementValueType to avoid extra rows): // // Instrument Type // ---------------------------------------------- // Counter Sum(aggregation_temporality=delta;is_monotonic=true) // UpDownCounter Sum(aggregation_temporality=delta;is_monotonic=false) // ValueRecorder TBD // SumObserver Sum(aggregation_temporality=cumulative;is_monotonic=true) // UpDownSumObserver Sum(aggregation_temporality=cumulative;is_monotonic=false) // ValueObserver Gauge() // // Types that are valid to be assigned to Data: // *Metric_IntGauge // *Metric_DoubleGauge // *Metric_IntSum // *Metric_DoubleSum // *Metric_IntHistogram // *Metric_DoubleHistogram // *Metric_DoubleSummary Data isMetric_Data `protobuf_oneof:"data"` }
Defines a Metric which has one or more timeseries.
The data model and relation between entities is shown in the diagram below. Here, "DataPoint" is the term used to refer to any one of the specific data point value types, and "points" is the term used to refer to any one of the lists of points contained in the Metric.
Metric is composed of a metadata and data.
Metadata part contains a name, description, unit.
Data is one of the possible types (Gauge, Sum, Histogram, etc.).
DataPoint contains timestamps, labels, and one of the possible value type fields.
Metric +------------+ |name | |description | |unit | +------------------------------------+ |data |---> |Gauge, Sum, Histogram, Summary, ... | +------------+ +------------------------------------+
Data [One of Gauge, Sum, Histogram, Summary, ...] +-----------+ |... | // Metadata about the Data. |points |--+ +-----------+ | | +---------------------------+ | |DataPoint 1 | v |+------+------+ +------+ | +-----+ ||label |label |...|label | | | 1 |-->||value1|value2|...|valueN| | +-----+ |+------+------+ +------+ | | . | |+-----+ | | . | ||value| | | . | |+-----+ | | . | +---------------------------+ | . | . | . | . | . | . | . | +---------------------------+ | . | |DataPoint M | +-----+ |+------+------+ +------+ | | M |-->||label |label |...|label | | +-----+ ||value1|value2|...|valueN| | |+------+------+ +------+ | |+-----+ | ||value| | |+-----+ | +---------------------------+
All DataPoint types have three common fields:
- Labels zero or more key-value pairs associated with the data point.
- StartTimeUnixNano MUST be set to the start of the interval when the data's type includes an AggregationTemporality. This field is not set otherwise.
- TimeUnixNano MUST be set to:
- the moment when an aggregation is reported (independent of the aggregation temporality).
- the instantaneous time of the event.
func (*Metric) Descriptor ¶
func (*Metric) GetDescription ¶ added in v0.10.0
func (*Metric) GetDoubleGauge ¶ added in v0.10.0
func (m *Metric) GetDoubleGauge() *DoubleGauge
func (*Metric) GetDoubleHistogram ¶ added in v0.10.0
func (m *Metric) GetDoubleHistogram() *DoubleHistogram
func (*Metric) GetDoubleSum ¶ added in v0.10.0
func (*Metric) GetDoubleSummary ¶ added in v0.15.0
func (m *Metric) GetDoubleSummary() *DoubleSummary
func (*Metric) GetIntGauge ¶ added in v0.10.0
func (*Metric) GetIntHistogram ¶ added in v0.10.0
func (m *Metric) GetIntHistogram() *IntHistogram
func (*Metric) MarshalToSizedBuffer ¶ added in v0.5.0
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *Metric) XXX_DiscardUnknown()
func (*Metric) XXX_Marshal ¶ added in v0.5.0
func (*Metric) XXX_OneofWrappers ¶ added in v0.10.0
func (*Metric) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Metric) XXX_Unmarshal ¶ added in v0.5.0
type Metric_DoubleGauge ¶ added in v0.10.0
type Metric_DoubleGauge struct {
DoubleGauge *DoubleGauge `protobuf:"bytes,5,opt,name=double_gauge,json=doubleGauge,proto3,oneof" json:"double_gauge,omitempty"`
}
func (*Metric_DoubleGauge) MarshalTo ¶ added in v0.10.0
func (m *Metric_DoubleGauge) MarshalTo(dAtA []byte) (int, error)
func (*Metric_DoubleGauge) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *Metric_DoubleGauge) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Metric_DoubleGauge) Size ¶ added in v0.10.0
func (m *Metric_DoubleGauge) Size() (n int)
type Metric_DoubleHistogram ¶ added in v0.10.0
type Metric_DoubleHistogram struct {
DoubleHistogram *DoubleHistogram `protobuf:"bytes,9,opt,name=double_histogram,json=doubleHistogram,proto3,oneof" json:"double_histogram,omitempty"`
}
func (*Metric_DoubleHistogram) MarshalTo ¶ added in v0.10.0
func (m *Metric_DoubleHistogram) MarshalTo(dAtA []byte) (int, error)
func (*Metric_DoubleHistogram) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *Metric_DoubleHistogram) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Metric_DoubleHistogram) Size ¶ added in v0.10.0
func (m *Metric_DoubleHistogram) Size() (n int)
type Metric_DoubleSum ¶ added in v0.10.0
type Metric_DoubleSum struct {
DoubleSum *DoubleSum `protobuf:"bytes,7,opt,name=double_sum,json=doubleSum,proto3,oneof" json:"double_sum,omitempty"`
}
func (*Metric_DoubleSum) MarshalTo ¶ added in v0.10.0
func (m *Metric_DoubleSum) MarshalTo(dAtA []byte) (int, error)
func (*Metric_DoubleSum) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *Metric_DoubleSum) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Metric_DoubleSum) Size ¶ added in v0.10.0
func (m *Metric_DoubleSum) Size() (n int)
type Metric_DoubleSummary ¶ added in v0.15.0
type Metric_DoubleSummary struct {
DoubleSummary *DoubleSummary `protobuf:"bytes,11,opt,name=double_summary,json=doubleSummary,proto3,oneof" json:"double_summary,omitempty"`
}
func (*Metric_DoubleSummary) MarshalTo ¶ added in v0.15.0
func (m *Metric_DoubleSummary) MarshalTo(dAtA []byte) (int, error)
func (*Metric_DoubleSummary) MarshalToSizedBuffer ¶ added in v0.15.0
func (m *Metric_DoubleSummary) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Metric_DoubleSummary) Size ¶ added in v0.15.0
func (m *Metric_DoubleSummary) Size() (n int)
type Metric_IntGauge ¶ added in v0.10.0
type Metric_IntGauge struct {
IntGauge *IntGauge `protobuf:"bytes,4,opt,name=int_gauge,json=intGauge,proto3,oneof" json:"int_gauge,omitempty"`
}
func (*Metric_IntGauge) MarshalTo ¶ added in v0.10.0
func (m *Metric_IntGauge) MarshalTo(dAtA []byte) (int, error)
func (*Metric_IntGauge) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *Metric_IntGauge) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Metric_IntGauge) Size ¶ added in v0.10.0
func (m *Metric_IntGauge) Size() (n int)
type Metric_IntHistogram ¶ added in v0.10.0
type Metric_IntHistogram struct {
IntHistogram *IntHistogram `protobuf:"bytes,8,opt,name=int_histogram,json=intHistogram,proto3,oneof" json:"int_histogram,omitempty"`
}
func (*Metric_IntHistogram) MarshalTo ¶ added in v0.10.0
func (m *Metric_IntHistogram) MarshalTo(dAtA []byte) (int, error)
func (*Metric_IntHistogram) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *Metric_IntHistogram) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Metric_IntHistogram) Size ¶ added in v0.10.0
func (m *Metric_IntHistogram) Size() (n int)
type Metric_IntSum ¶ added in v0.10.0
type Metric_IntSum struct {
IntSum *IntSum `protobuf:"bytes,6,opt,name=int_sum,json=intSum,proto3,oneof" json:"int_sum,omitempty"`
}
func (*Metric_IntSum) MarshalTo ¶ added in v0.10.0
func (m *Metric_IntSum) MarshalTo(dAtA []byte) (int, error)
func (*Metric_IntSum) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *Metric_IntSum) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Metric_IntSum) Size ¶ added in v0.10.0
func (m *Metric_IntSum) Size() (n int)
type ResourceMetrics ¶
type ResourceMetrics struct { // The resource for the metrics in this message. // If this field is not set then no resource info is known. Resource v1.Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource"` // A list of metrics that originate from a resource. InstrumentationLibraryMetrics []*InstrumentationLibraryMetrics `` /* 150-byte string literal not displayed */ }
A collection of InstrumentationLibraryMetrics from a Resource.
func (*ResourceMetrics) Descriptor ¶
func (*ResourceMetrics) Descriptor() ([]byte, []int)
func (*ResourceMetrics) GetInstrumentationLibraryMetrics ¶
func (m *ResourceMetrics) GetInstrumentationLibraryMetrics() []*InstrumentationLibraryMetrics
func (*ResourceMetrics) GetResource ¶
func (m *ResourceMetrics) GetResource() v1.Resource
func (*ResourceMetrics) Marshal ¶
func (m *ResourceMetrics) Marshal() (dAtA []byte, err error)
func (*ResourceMetrics) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *ResourceMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResourceMetrics) ProtoMessage ¶
func (*ResourceMetrics) ProtoMessage()
func (*ResourceMetrics) Reset ¶
func (m *ResourceMetrics) Reset()
func (*ResourceMetrics) Size ¶
func (m *ResourceMetrics) Size() (n int)
func (*ResourceMetrics) String ¶
func (m *ResourceMetrics) String() string
func (*ResourceMetrics) Unmarshal ¶
func (m *ResourceMetrics) Unmarshal(dAtA []byte) error
func (*ResourceMetrics) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *ResourceMetrics) XXX_DiscardUnknown()
func (*ResourceMetrics) XXX_Marshal ¶ added in v0.5.0
func (m *ResourceMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceMetrics) XXX_Merge ¶ added in v0.5.0
func (m *ResourceMetrics) XXX_Merge(src proto.Message)
func (*ResourceMetrics) XXX_Size ¶ added in v0.5.0
func (m *ResourceMetrics) XXX_Size() int
func (*ResourceMetrics) XXX_Unmarshal ¶ added in v0.5.0
func (m *ResourceMetrics) XXX_Unmarshal(b []byte) error