Documentation ¶
Index ¶
- Variables
- type AggregationTemporality
- func (AggregationTemporality) Descriptor() protoreflect.EnumDescriptor
- func (x AggregationTemporality) Enum() *AggregationTemporality
- func (AggregationTemporality) EnumDescriptor() ([]byte, []int)deprecated
- func (x AggregationTemporality) Number() protoreflect.EnumNumber
- func (x AggregationTemporality) String() string
- func (AggregationTemporality) Type() protoreflect.EnumType
- type DoubleDataPoint
- func (*DoubleDataPoint) Descriptor() ([]byte, []int)deprecated
- func (x *DoubleDataPoint) GetExemplars() []*DoubleExemplar
- func (x *DoubleDataPoint) GetLabels() []*v11.StringKeyValue
- func (x *DoubleDataPoint) GetStartTimeUnixNano() uint64
- func (x *DoubleDataPoint) GetTimeUnixNano() uint64
- func (x *DoubleDataPoint) GetValue() float64
- func (*DoubleDataPoint) ProtoMessage()
- func (x *DoubleDataPoint) ProtoReflect() protoreflect.Message
- func (x *DoubleDataPoint) Reset()
- func (x *DoubleDataPoint) String() string
- type DoubleExemplar
- func (*DoubleExemplar) Descriptor() ([]byte, []int)deprecated
- func (x *DoubleExemplar) GetFilteredLabels() []*v11.StringKeyValue
- func (x *DoubleExemplar) GetSpanId() []byte
- func (x *DoubleExemplar) GetTimeUnixNano() uint64
- func (x *DoubleExemplar) GetTraceId() []byte
- func (x *DoubleExemplar) GetValue() float64
- func (*DoubleExemplar) ProtoMessage()
- func (x *DoubleExemplar) ProtoReflect() protoreflect.Message
- func (x *DoubleExemplar) Reset()
- func (x *DoubleExemplar) String() string
- type DoubleGauge
- type DoubleHistogram
- func (*DoubleHistogram) Descriptor() ([]byte, []int)deprecated
- func (x *DoubleHistogram) GetAggregationTemporality() AggregationTemporality
- func (x *DoubleHistogram) GetDataPoints() []*DoubleHistogramDataPoint
- func (*DoubleHistogram) ProtoMessage()
- func (x *DoubleHistogram) ProtoReflect() protoreflect.Message
- func (x *DoubleHistogram) Reset()
- func (x *DoubleHistogram) String() string
- type DoubleHistogramDataPoint
- func (*DoubleHistogramDataPoint) Descriptor() ([]byte, []int)deprecated
- func (x *DoubleHistogramDataPoint) GetBucketCounts() []uint64
- func (x *DoubleHistogramDataPoint) GetCount() uint64
- func (x *DoubleHistogramDataPoint) GetExemplars() []*DoubleExemplar
- func (x *DoubleHistogramDataPoint) GetExplicitBounds() []float64
- func (x *DoubleHistogramDataPoint) GetLabels() []*v11.StringKeyValue
- func (x *DoubleHistogramDataPoint) GetStartTimeUnixNano() uint64
- func (x *DoubleHistogramDataPoint) GetSum() float64
- func (x *DoubleHistogramDataPoint) GetTimeUnixNano() uint64
- func (*DoubleHistogramDataPoint) ProtoMessage()
- func (x *DoubleHistogramDataPoint) ProtoReflect() protoreflect.Message
- func (x *DoubleHistogramDataPoint) Reset()
- func (x *DoubleHistogramDataPoint) String() string
- type DoubleSum
- func (*DoubleSum) Descriptor() ([]byte, []int)deprecated
- func (x *DoubleSum) GetAggregationTemporality() AggregationTemporality
- func (x *DoubleSum) GetDataPoints() []*DoubleDataPoint
- func (x *DoubleSum) GetIsMonotonic() bool
- func (*DoubleSum) ProtoMessage()
- func (x *DoubleSum) ProtoReflect() protoreflect.Message
- func (x *DoubleSum) Reset()
- func (x *DoubleSum) String() string
- type DoubleSummary
- type DoubleSummaryDataPoint
- func (*DoubleSummaryDataPoint) Descriptor() ([]byte, []int)deprecated
- func (x *DoubleSummaryDataPoint) GetCount() uint64
- func (x *DoubleSummaryDataPoint) GetLabels() []*v11.StringKeyValue
- func (x *DoubleSummaryDataPoint) GetQuantileValues() []*DoubleSummaryDataPoint_ValueAtQuantile
- func (x *DoubleSummaryDataPoint) GetStartTimeUnixNano() uint64
- func (x *DoubleSummaryDataPoint) GetSum() float64
- func (x *DoubleSummaryDataPoint) GetTimeUnixNano() uint64
- func (*DoubleSummaryDataPoint) ProtoMessage()
- func (x *DoubleSummaryDataPoint) ProtoReflect() protoreflect.Message
- func (x *DoubleSummaryDataPoint) Reset()
- func (x *DoubleSummaryDataPoint) String() string
- type DoubleSummaryDataPoint_ValueAtQuantile
- func (*DoubleSummaryDataPoint_ValueAtQuantile) Descriptor() ([]byte, []int)deprecated
- func (x *DoubleSummaryDataPoint_ValueAtQuantile) GetQuantile() float64
- func (x *DoubleSummaryDataPoint_ValueAtQuantile) GetValue() float64
- func (*DoubleSummaryDataPoint_ValueAtQuantile) ProtoMessage()
- func (x *DoubleSummaryDataPoint_ValueAtQuantile) ProtoReflect() protoreflect.Message
- func (x *DoubleSummaryDataPoint_ValueAtQuantile) Reset()
- func (x *DoubleSummaryDataPoint_ValueAtQuantile) String() string
- type InstrumentationLibraryMetrics
- func (*InstrumentationLibraryMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *InstrumentationLibraryMetrics) GetInstrumentationLibrary() *v11.InstrumentationLibrary
- func (x *InstrumentationLibraryMetrics) GetMetrics() []*Metric
- func (*InstrumentationLibraryMetrics) ProtoMessage()
- func (x *InstrumentationLibraryMetrics) ProtoReflect() protoreflect.Message
- func (x *InstrumentationLibraryMetrics) Reset()
- func (x *InstrumentationLibraryMetrics) String() string
- type IntDataPoint
- func (*IntDataPoint) Descriptor() ([]byte, []int)deprecated
- func (x *IntDataPoint) GetExemplars() []*IntExemplar
- func (x *IntDataPoint) GetLabels() []*v11.StringKeyValue
- func (x *IntDataPoint) GetStartTimeUnixNano() uint64
- func (x *IntDataPoint) GetTimeUnixNano() uint64
- func (x *IntDataPoint) GetValue() int64
- func (*IntDataPoint) ProtoMessage()
- func (x *IntDataPoint) ProtoReflect() protoreflect.Message
- func (x *IntDataPoint) Reset()
- func (x *IntDataPoint) String() string
- type IntExemplar
- func (*IntExemplar) Descriptor() ([]byte, []int)deprecated
- func (x *IntExemplar) GetFilteredLabels() []*v11.StringKeyValue
- func (x *IntExemplar) GetSpanId() []byte
- func (x *IntExemplar) GetTimeUnixNano() uint64
- func (x *IntExemplar) GetTraceId() []byte
- func (x *IntExemplar) GetValue() int64
- func (*IntExemplar) ProtoMessage()
- func (x *IntExemplar) ProtoReflect() protoreflect.Message
- func (x *IntExemplar) Reset()
- func (x *IntExemplar) String() string
- type IntGauge
- type IntHistogram
- func (*IntHistogram) Descriptor() ([]byte, []int)deprecated
- func (x *IntHistogram) GetAggregationTemporality() AggregationTemporality
- func (x *IntHistogram) GetDataPoints() []*IntHistogramDataPoint
- func (*IntHistogram) ProtoMessage()
- func (x *IntHistogram) ProtoReflect() protoreflect.Message
- func (x *IntHistogram) Reset()
- func (x *IntHistogram) String() string
- type IntHistogramDataPoint
- func (*IntHistogramDataPoint) Descriptor() ([]byte, []int)deprecated
- func (x *IntHistogramDataPoint) GetBucketCounts() []uint64
- func (x *IntHistogramDataPoint) GetCount() uint64
- func (x *IntHistogramDataPoint) GetExemplars() []*IntExemplar
- func (x *IntHistogramDataPoint) GetExplicitBounds() []float64
- func (x *IntHistogramDataPoint) GetLabels() []*v11.StringKeyValue
- func (x *IntHistogramDataPoint) GetStartTimeUnixNano() uint64
- func (x *IntHistogramDataPoint) GetSum() int64
- func (x *IntHistogramDataPoint) GetTimeUnixNano() uint64
- func (*IntHistogramDataPoint) ProtoMessage()
- func (x *IntHistogramDataPoint) ProtoReflect() protoreflect.Message
- func (x *IntHistogramDataPoint) Reset()
- func (x *IntHistogramDataPoint) String() string
- type IntSum
- func (*IntSum) Descriptor() ([]byte, []int)deprecated
- func (x *IntSum) GetAggregationTemporality() AggregationTemporality
- func (x *IntSum) GetDataPoints() []*IntDataPoint
- func (x *IntSum) GetIsMonotonic() bool
- func (*IntSum) ProtoMessage()
- func (x *IntSum) ProtoReflect() protoreflect.Message
- func (x *IntSum) Reset()
- func (x *IntSum) String() string
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)deprecated
- func (m *Metric) GetData() isMetric_Data
- func (x *Metric) GetDescription() string
- func (x *Metric) GetDoubleGauge() *DoubleGauge
- func (x *Metric) GetDoubleHistogram() *DoubleHistogram
- func (x *Metric) GetDoubleSum() *DoubleSum
- func (x *Metric) GetDoubleSummary() *DoubleSummary
- func (x *Metric) GetIntGauge() *IntGauge
- func (x *Metric) GetIntHistogram() *IntHistogram
- func (x *Metric) GetIntSum() *IntSum
- func (x *Metric) GetName() string
- func (x *Metric) GetUnit() string
- func (*Metric) ProtoMessage()
- func (x *Metric) ProtoReflect() protoreflect.Message
- func (x *Metric) Reset()
- func (x *Metric) String() string
- 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)deprecated
- func (x *ResourceMetrics) GetInstrumentationLibraryMetrics() []*InstrumentationLibraryMetrics
- func (x *ResourceMetrics) GetResource() *v1.Resource
- func (*ResourceMetrics) ProtoMessage()
- func (x *ResourceMetrics) ProtoReflect() protoreflect.Message
- func (x *ResourceMetrics) Reset()
- func (x *ResourceMetrics) String() string
Constants ¶
This section is empty.
Variables ¶
var ( AggregationTemporality_name = map[int32]string{ 0: "AGGREGATION_TEMPORALITY_UNSPECIFIED", 1: "AGGREGATION_TEMPORALITY_DELTA", 2: "AGGREGATION_TEMPORALITY_CUMULATIVE", } AggregationTemporality_value = map[string]int32{ "AGGREGATION_TEMPORALITY_UNSPECIFIED": 0, "AGGREGATION_TEMPORALITY_DELTA": 1, "AGGREGATION_TEMPORALITY_CUMULATIVE": 2, } )
Enum value maps for AggregationTemporality.
var File_opentelemetry_proto_metrics_v1_metrics_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AggregationTemporality ¶
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) Descriptor ¶
func (AggregationTemporality) Descriptor() protoreflect.EnumDescriptor
func (AggregationTemporality) Enum ¶
func (x AggregationTemporality) Enum() *AggregationTemporality
func (AggregationTemporality) EnumDescriptor
deprecated
func (AggregationTemporality) EnumDescriptor() ([]byte, []int)
Deprecated: Use AggregationTemporality.Descriptor instead.
func (AggregationTemporality) Number ¶
func (x AggregationTemporality) Number() protoreflect.EnumNumber
func (AggregationTemporality) String ¶
func (x AggregationTemporality) String() string
func (AggregationTemporality) Type ¶
func (AggregationTemporality) Type() protoreflect.EnumType
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,omitempty"` // 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"` // contains filtered or unexported fields }
DoubleDataPoint is a single data point in a timeseries that describes the time-varying value of a double metric.
func (*DoubleDataPoint) Descriptor
deprecated
func (*DoubleDataPoint) Descriptor() ([]byte, []int)
Deprecated: Use DoubleDataPoint.ProtoReflect.Descriptor instead.
func (*DoubleDataPoint) GetExemplars ¶
func (x *DoubleDataPoint) GetExemplars() []*DoubleExemplar
func (*DoubleDataPoint) GetLabels ¶
func (x *DoubleDataPoint) GetLabels() []*v11.StringKeyValue
func (*DoubleDataPoint) GetStartTimeUnixNano ¶
func (x *DoubleDataPoint) GetStartTimeUnixNano() uint64
func (*DoubleDataPoint) GetTimeUnixNano ¶
func (x *DoubleDataPoint) GetTimeUnixNano() uint64
func (*DoubleDataPoint) GetValue ¶
func (x *DoubleDataPoint) GetValue() float64
func (*DoubleDataPoint) ProtoMessage ¶
func (*DoubleDataPoint) ProtoMessage()
func (*DoubleDataPoint) ProtoReflect ¶
func (x *DoubleDataPoint) ProtoReflect() protoreflect.Message
func (*DoubleDataPoint) Reset ¶
func (x *DoubleDataPoint) Reset()
func (*DoubleDataPoint) String ¶
func (x *DoubleDataPoint) String() string
type DoubleExemplar ¶
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,omitempty"` // 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 []byte `protobuf:"bytes,4,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` // (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 []byte `protobuf:"bytes,5,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // contains filtered or unexported fields }
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
deprecated
func (*DoubleExemplar) Descriptor() ([]byte, []int)
Deprecated: Use DoubleExemplar.ProtoReflect.Descriptor instead.
func (*DoubleExemplar) GetFilteredLabels ¶
func (x *DoubleExemplar) GetFilteredLabels() []*v11.StringKeyValue
func (*DoubleExemplar) GetSpanId ¶
func (x *DoubleExemplar) GetSpanId() []byte
func (*DoubleExemplar) GetTimeUnixNano ¶
func (x *DoubleExemplar) GetTimeUnixNano() uint64
func (*DoubleExemplar) GetTraceId ¶
func (x *DoubleExemplar) GetTraceId() []byte
func (*DoubleExemplar) GetValue ¶
func (x *DoubleExemplar) GetValue() float64
func (*DoubleExemplar) ProtoMessage ¶
func (*DoubleExemplar) ProtoMessage()
func (*DoubleExemplar) ProtoReflect ¶
func (x *DoubleExemplar) ProtoReflect() protoreflect.Message
func (*DoubleExemplar) Reset ¶
func (x *DoubleExemplar) Reset()
func (*DoubleExemplar) String ¶
func (x *DoubleExemplar) String() string
type DoubleGauge ¶
type DoubleGauge struct { DataPoints []*DoubleDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"` // contains filtered or unexported fields }
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
deprecated
func (*DoubleGauge) Descriptor() ([]byte, []int)
Deprecated: Use DoubleGauge.ProtoReflect.Descriptor instead.
func (*DoubleGauge) GetDataPoints ¶
func (x *DoubleGauge) GetDataPoints() []*DoubleDataPoint
func (*DoubleGauge) ProtoMessage ¶
func (*DoubleGauge) ProtoMessage()
func (*DoubleGauge) ProtoReflect ¶
func (x *DoubleGauge) ProtoReflect() protoreflect.Message
func (*DoubleGauge) Reset ¶
func (x *DoubleGauge) Reset()
func (*DoubleGauge) String ¶
func (x *DoubleGauge) String() string
type DoubleHistogram ¶
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 */ // contains filtered or unexported fields }
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
deprecated
func (*DoubleHistogram) Descriptor() ([]byte, []int)
Deprecated: Use DoubleHistogram.ProtoReflect.Descriptor instead.
func (*DoubleHistogram) GetAggregationTemporality ¶
func (x *DoubleHistogram) GetAggregationTemporality() AggregationTemporality
func (*DoubleHistogram) GetDataPoints ¶
func (x *DoubleHistogram) GetDataPoints() []*DoubleHistogramDataPoint
func (*DoubleHistogram) ProtoMessage ¶
func (*DoubleHistogram) ProtoMessage()
func (*DoubleHistogram) ProtoReflect ¶
func (x *DoubleHistogram) ProtoReflect() protoreflect.Message
func (*DoubleHistogram) Reset ¶
func (x *DoubleHistogram) Reset()
func (*DoubleHistogram) String ¶
func (x *DoubleHistogram) String() string
type DoubleHistogramDataPoint ¶
type DoubleHistogramDataPoint struct { // The set of labels that uniquely identify this timeseries. Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` // 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"` // contains filtered or unexported fields }
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
deprecated
func (*DoubleHistogramDataPoint) Descriptor() ([]byte, []int)
Deprecated: Use DoubleHistogramDataPoint.ProtoReflect.Descriptor instead.
func (*DoubleHistogramDataPoint) GetBucketCounts ¶
func (x *DoubleHistogramDataPoint) GetBucketCounts() []uint64
func (*DoubleHistogramDataPoint) GetCount ¶
func (x *DoubleHistogramDataPoint) GetCount() uint64
func (*DoubleHistogramDataPoint) GetExemplars ¶
func (x *DoubleHistogramDataPoint) GetExemplars() []*DoubleExemplar
func (*DoubleHistogramDataPoint) GetExplicitBounds ¶
func (x *DoubleHistogramDataPoint) GetExplicitBounds() []float64
func (*DoubleHistogramDataPoint) GetLabels ¶
func (x *DoubleHistogramDataPoint) GetLabels() []*v11.StringKeyValue
func (*DoubleHistogramDataPoint) GetStartTimeUnixNano ¶
func (x *DoubleHistogramDataPoint) GetStartTimeUnixNano() uint64
func (*DoubleHistogramDataPoint) GetSum ¶
func (x *DoubleHistogramDataPoint) GetSum() float64
func (*DoubleHistogramDataPoint) GetTimeUnixNano ¶
func (x *DoubleHistogramDataPoint) GetTimeUnixNano() uint64
func (*DoubleHistogramDataPoint) ProtoMessage ¶
func (*DoubleHistogramDataPoint) ProtoMessage()
func (*DoubleHistogramDataPoint) ProtoReflect ¶
func (x *DoubleHistogramDataPoint) ProtoReflect() protoreflect.Message
func (*DoubleHistogramDataPoint) Reset ¶
func (x *DoubleHistogramDataPoint) Reset()
func (*DoubleHistogramDataPoint) String ¶
func (x *DoubleHistogramDataPoint) String() string
type DoubleSum ¶
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"` // contains filtered or unexported fields }
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
deprecated
func (*DoubleSum) GetAggregationTemporality ¶
func (x *DoubleSum) GetAggregationTemporality() AggregationTemporality
func (*DoubleSum) GetDataPoints ¶
func (x *DoubleSum) GetDataPoints() []*DoubleDataPoint
func (*DoubleSum) GetIsMonotonic ¶
func (*DoubleSum) ProtoMessage ¶
func (*DoubleSum) ProtoMessage()
func (*DoubleSum) ProtoReflect ¶
func (x *DoubleSum) ProtoReflect() protoreflect.Message
type DoubleSummary ¶
type DoubleSummary struct { DataPoints []*DoubleSummaryDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"` // contains filtered or unexported fields }
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
deprecated
func (*DoubleSummary) Descriptor() ([]byte, []int)
Deprecated: Use DoubleSummary.ProtoReflect.Descriptor instead.
func (*DoubleSummary) GetDataPoints ¶
func (x *DoubleSummary) GetDataPoints() []*DoubleSummaryDataPoint
func (*DoubleSummary) ProtoMessage ¶
func (*DoubleSummary) ProtoMessage()
func (*DoubleSummary) ProtoReflect ¶
func (x *DoubleSummary) ProtoReflect() protoreflect.Message
func (*DoubleSummary) Reset ¶
func (x *DoubleSummary) Reset()
func (*DoubleSummary) String ¶
func (x *DoubleSummary) String() string
type DoubleSummaryDataPoint ¶
type DoubleSummaryDataPoint struct { // The set of labels that uniquely identify this timeseries. Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` // 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"` // contains filtered or unexported fields }
DoubleSummaryDataPoint is a single data point in a timeseries that describes the time-varying values of a Summary metric.
func (*DoubleSummaryDataPoint) Descriptor
deprecated
func (*DoubleSummaryDataPoint) Descriptor() ([]byte, []int)
Deprecated: Use DoubleSummaryDataPoint.ProtoReflect.Descriptor instead.
func (*DoubleSummaryDataPoint) GetCount ¶
func (x *DoubleSummaryDataPoint) GetCount() uint64
func (*DoubleSummaryDataPoint) GetLabels ¶
func (x *DoubleSummaryDataPoint) GetLabels() []*v11.StringKeyValue
func (*DoubleSummaryDataPoint) GetQuantileValues ¶
func (x *DoubleSummaryDataPoint) GetQuantileValues() []*DoubleSummaryDataPoint_ValueAtQuantile
func (*DoubleSummaryDataPoint) GetStartTimeUnixNano ¶
func (x *DoubleSummaryDataPoint) GetStartTimeUnixNano() uint64
func (*DoubleSummaryDataPoint) GetSum ¶
func (x *DoubleSummaryDataPoint) GetSum() float64
func (*DoubleSummaryDataPoint) GetTimeUnixNano ¶
func (x *DoubleSummaryDataPoint) GetTimeUnixNano() uint64
func (*DoubleSummaryDataPoint) ProtoMessage ¶
func (*DoubleSummaryDataPoint) ProtoMessage()
func (*DoubleSummaryDataPoint) ProtoReflect ¶
func (x *DoubleSummaryDataPoint) ProtoReflect() protoreflect.Message
func (*DoubleSummaryDataPoint) Reset ¶
func (x *DoubleSummaryDataPoint) Reset()
func (*DoubleSummaryDataPoint) String ¶
func (x *DoubleSummaryDataPoint) String() string
type DoubleSummaryDataPoint_ValueAtQuantile ¶
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"` // contains filtered or unexported fields }
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
deprecated
func (*DoubleSummaryDataPoint_ValueAtQuantile) Descriptor() ([]byte, []int)
Deprecated: Use DoubleSummaryDataPoint_ValueAtQuantile.ProtoReflect.Descriptor instead.
func (*DoubleSummaryDataPoint_ValueAtQuantile) GetQuantile ¶
func (x *DoubleSummaryDataPoint_ValueAtQuantile) GetQuantile() float64
func (*DoubleSummaryDataPoint_ValueAtQuantile) GetValue ¶
func (x *DoubleSummaryDataPoint_ValueAtQuantile) GetValue() float64
func (*DoubleSummaryDataPoint_ValueAtQuantile) ProtoMessage ¶
func (*DoubleSummaryDataPoint_ValueAtQuantile) ProtoMessage()
func (*DoubleSummaryDataPoint_ValueAtQuantile) ProtoReflect ¶
func (x *DoubleSummaryDataPoint_ValueAtQuantile) ProtoReflect() protoreflect.Message
func (*DoubleSummaryDataPoint_ValueAtQuantile) Reset ¶
func (x *DoubleSummaryDataPoint_ValueAtQuantile) Reset()
func (*DoubleSummaryDataPoint_ValueAtQuantile) String ¶
func (x *DoubleSummaryDataPoint_ValueAtQuantile) String() string
type InstrumentationLibraryMetrics ¶
type InstrumentationLibraryMetrics struct { // The instrumentation library information for the metrics in this message. // Semantically when InstrumentationLibrary isn't set, it is equivalent with // an empty instrumentation library name (unknown). InstrumentationLibrary *v11.InstrumentationLibrary `` /* 127-byte string literal not displayed */ // A list of metrics that originate from an instrumentation library. Metrics []*Metric `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"` // contains filtered or unexported fields }
A collection of Metrics produced by an InstrumentationLibrary.
func (*InstrumentationLibraryMetrics) Descriptor
deprecated
func (*InstrumentationLibraryMetrics) Descriptor() ([]byte, []int)
Deprecated: Use InstrumentationLibraryMetrics.ProtoReflect.Descriptor instead.
func (*InstrumentationLibraryMetrics) GetInstrumentationLibrary ¶
func (x *InstrumentationLibraryMetrics) GetInstrumentationLibrary() *v11.InstrumentationLibrary
func (*InstrumentationLibraryMetrics) GetMetrics ¶
func (x *InstrumentationLibraryMetrics) GetMetrics() []*Metric
func (*InstrumentationLibraryMetrics) ProtoMessage ¶
func (*InstrumentationLibraryMetrics) ProtoMessage()
func (*InstrumentationLibraryMetrics) ProtoReflect ¶
func (x *InstrumentationLibraryMetrics) ProtoReflect() protoreflect.Message
func (*InstrumentationLibraryMetrics) Reset ¶
func (x *InstrumentationLibraryMetrics) Reset()
func (*InstrumentationLibraryMetrics) String ¶
func (x *InstrumentationLibraryMetrics) String() string
type IntDataPoint ¶
type IntDataPoint struct { // The set of labels that uniquely identify this timeseries. Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` // 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"` // contains filtered or unexported fields }
IntDataPoint is a single data point in a timeseries that describes the time-varying values of a int64 metric.
func (*IntDataPoint) Descriptor
deprecated
func (*IntDataPoint) Descriptor() ([]byte, []int)
Deprecated: Use IntDataPoint.ProtoReflect.Descriptor instead.
func (*IntDataPoint) GetExemplars ¶
func (x *IntDataPoint) GetExemplars() []*IntExemplar
func (*IntDataPoint) GetLabels ¶
func (x *IntDataPoint) GetLabels() []*v11.StringKeyValue
func (*IntDataPoint) GetStartTimeUnixNano ¶
func (x *IntDataPoint) GetStartTimeUnixNano() uint64
func (*IntDataPoint) GetTimeUnixNano ¶
func (x *IntDataPoint) GetTimeUnixNano() uint64
func (*IntDataPoint) GetValue ¶
func (x *IntDataPoint) GetValue() int64
func (*IntDataPoint) ProtoMessage ¶
func (*IntDataPoint) ProtoMessage()
func (*IntDataPoint) ProtoReflect ¶
func (x *IntDataPoint) ProtoReflect() protoreflect.Message
func (*IntDataPoint) Reset ¶
func (x *IntDataPoint) Reset()
func (*IntDataPoint) String ¶
func (x *IntDataPoint) String() string
type IntExemplar ¶
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,omitempty"` // 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 []byte `protobuf:"bytes,4,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` // (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 []byte `protobuf:"bytes,5,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // contains filtered or unexported fields }
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
deprecated
func (*IntExemplar) Descriptor() ([]byte, []int)
Deprecated: Use IntExemplar.ProtoReflect.Descriptor instead.
func (*IntExemplar) GetFilteredLabels ¶
func (x *IntExemplar) GetFilteredLabels() []*v11.StringKeyValue
func (*IntExemplar) GetSpanId ¶
func (x *IntExemplar) GetSpanId() []byte
func (*IntExemplar) GetTimeUnixNano ¶
func (x *IntExemplar) GetTimeUnixNano() uint64
func (*IntExemplar) GetTraceId ¶
func (x *IntExemplar) GetTraceId() []byte
func (*IntExemplar) GetValue ¶
func (x *IntExemplar) GetValue() int64
func (*IntExemplar) ProtoMessage ¶
func (*IntExemplar) ProtoMessage()
func (*IntExemplar) ProtoReflect ¶
func (x *IntExemplar) ProtoReflect() protoreflect.Message
func (*IntExemplar) Reset ¶
func (x *IntExemplar) Reset()
func (*IntExemplar) String ¶
func (x *IntExemplar) String() string
type IntGauge ¶
type IntGauge struct { DataPoints []*IntDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"` // contains filtered or unexported fields }
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
deprecated
func (*IntGauge) GetDataPoints ¶
func (x *IntGauge) GetDataPoints() []*IntDataPoint
func (*IntGauge) ProtoMessage ¶
func (*IntGauge) ProtoMessage()
func (*IntGauge) ProtoReflect ¶
func (x *IntGauge) ProtoReflect() protoreflect.Message
type IntHistogram ¶
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 */ // contains filtered or unexported fields }
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
deprecated
func (*IntHistogram) Descriptor() ([]byte, []int)
Deprecated: Use IntHistogram.ProtoReflect.Descriptor instead.
func (*IntHistogram) GetAggregationTemporality ¶
func (x *IntHistogram) GetAggregationTemporality() AggregationTemporality
func (*IntHistogram) GetDataPoints ¶
func (x *IntHistogram) GetDataPoints() []*IntHistogramDataPoint
func (*IntHistogram) ProtoMessage ¶
func (*IntHistogram) ProtoMessage()
func (*IntHistogram) ProtoReflect ¶
func (x *IntHistogram) ProtoReflect() protoreflect.Message
func (*IntHistogram) Reset ¶
func (x *IntHistogram) Reset()
func (*IntHistogram) String ¶
func (x *IntHistogram) String() string
type IntHistogramDataPoint ¶
type IntHistogramDataPoint struct { // The set of labels that uniquely identify this timeseries. Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` // 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"` // contains filtered or unexported fields }
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
deprecated
func (*IntHistogramDataPoint) Descriptor() ([]byte, []int)
Deprecated: Use IntHistogramDataPoint.ProtoReflect.Descriptor instead.
func (*IntHistogramDataPoint) GetBucketCounts ¶
func (x *IntHistogramDataPoint) GetBucketCounts() []uint64
func (*IntHistogramDataPoint) GetCount ¶
func (x *IntHistogramDataPoint) GetCount() uint64
func (*IntHistogramDataPoint) GetExemplars ¶
func (x *IntHistogramDataPoint) GetExemplars() []*IntExemplar
func (*IntHistogramDataPoint) GetExplicitBounds ¶
func (x *IntHistogramDataPoint) GetExplicitBounds() []float64
func (*IntHistogramDataPoint) GetLabels ¶
func (x *IntHistogramDataPoint) GetLabels() []*v11.StringKeyValue
func (*IntHistogramDataPoint) GetStartTimeUnixNano ¶
func (x *IntHistogramDataPoint) GetStartTimeUnixNano() uint64
func (*IntHistogramDataPoint) GetSum ¶
func (x *IntHistogramDataPoint) GetSum() int64
func (*IntHistogramDataPoint) GetTimeUnixNano ¶
func (x *IntHistogramDataPoint) GetTimeUnixNano() uint64
func (*IntHistogramDataPoint) ProtoMessage ¶
func (*IntHistogramDataPoint) ProtoMessage()
func (*IntHistogramDataPoint) ProtoReflect ¶
func (x *IntHistogramDataPoint) ProtoReflect() protoreflect.Message
func (*IntHistogramDataPoint) Reset ¶
func (x *IntHistogramDataPoint) Reset()
func (*IntHistogramDataPoint) String ¶
func (x *IntHistogramDataPoint) String() string
type IntSum ¶
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"` // contains filtered or unexported fields }
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
deprecated
func (*IntSum) GetAggregationTemporality ¶
func (x *IntSum) GetAggregationTemporality() AggregationTemporality
func (*IntSum) GetDataPoints ¶
func (x *IntSum) GetDataPoints() []*IntDataPoint
func (*IntSum) GetIsMonotonic ¶
func (*IntSum) ProtoMessage ¶
func (*IntSum) ProtoMessage()
func (*IntSum) ProtoReflect ¶
func (x *IntSum) ProtoReflect() protoreflect.Message
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 assignable to Data: // *Metric_IntGauge // *Metric_DoubleGauge // *Metric_IntSum // *Metric_DoubleSum // *Metric_IntHistogram // *Metric_DoubleHistogram // *Metric_DoubleSummary Data isMetric_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
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
deprecated
func (*Metric) GetDescription ¶
func (*Metric) GetDoubleGauge ¶
func (x *Metric) GetDoubleGauge() *DoubleGauge
func (*Metric) GetDoubleHistogram ¶
func (x *Metric) GetDoubleHistogram() *DoubleHistogram
func (*Metric) GetDoubleSum ¶
func (*Metric) GetDoubleSummary ¶
func (x *Metric) GetDoubleSummary() *DoubleSummary
func (*Metric) GetIntGauge ¶
func (*Metric) GetIntHistogram ¶
func (x *Metric) GetIntHistogram() *IntHistogram
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) ProtoReflect ¶
func (x *Metric) ProtoReflect() protoreflect.Message
type Metric_DoubleGauge ¶
type Metric_DoubleGauge struct {
DoubleGauge *DoubleGauge `protobuf:"bytes,5,opt,name=double_gauge,json=doubleGauge,proto3,oneof"`
}
type Metric_DoubleHistogram ¶
type Metric_DoubleHistogram struct {
DoubleHistogram *DoubleHistogram `protobuf:"bytes,9,opt,name=double_histogram,json=doubleHistogram,proto3,oneof"`
}
type Metric_DoubleSum ¶
type Metric_DoubleSum struct {
DoubleSum *DoubleSum `protobuf:"bytes,7,opt,name=double_sum,json=doubleSum,proto3,oneof"`
}
type Metric_DoubleSummary ¶
type Metric_DoubleSummary struct {
DoubleSummary *DoubleSummary `protobuf:"bytes,11,opt,name=double_summary,json=doubleSummary,proto3,oneof"`
}
type Metric_IntGauge ¶
type Metric_IntGauge struct {
IntGauge *IntGauge `protobuf:"bytes,4,opt,name=int_gauge,json=intGauge,proto3,oneof"`
}
type Metric_IntHistogram ¶
type Metric_IntHistogram struct {
IntHistogram *IntHistogram `protobuf:"bytes,8,opt,name=int_histogram,json=intHistogram,proto3,oneof"`
}
type Metric_IntSum ¶
type Metric_IntSum struct {
IntSum *IntSum `protobuf:"bytes,6,opt,name=int_sum,json=intSum,proto3,oneof"`
}
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,omitempty"` // A list of metrics that originate from a resource. InstrumentationLibraryMetrics []*InstrumentationLibraryMetrics `` /* 150-byte string literal not displayed */ // contains filtered or unexported fields }
A collection of InstrumentationLibraryMetrics from a Resource.
func (*ResourceMetrics) Descriptor
deprecated
func (*ResourceMetrics) Descriptor() ([]byte, []int)
Deprecated: Use ResourceMetrics.ProtoReflect.Descriptor instead.
func (*ResourceMetrics) GetInstrumentationLibraryMetrics ¶
func (x *ResourceMetrics) GetInstrumentationLibraryMetrics() []*InstrumentationLibraryMetrics
func (*ResourceMetrics) GetResource ¶
func (x *ResourceMetrics) GetResource() *v1.Resource
func (*ResourceMetrics) ProtoMessage ¶
func (*ResourceMetrics) ProtoMessage()
func (*ResourceMetrics) ProtoReflect ¶
func (x *ResourceMetrics) ProtoReflect() protoreflect.Message
func (*ResourceMetrics) Reset ¶
func (x *ResourceMetrics) Reset()
func (*ResourceMetrics) String ¶
func (x *ResourceMetrics) String() string