v1

package
v0.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMetrics        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMetrics          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMetrics = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AggregationTemporality_name = map[int32]string{
	0: "AGGREGATION_TEMPORALITY_UNSPECIFIED",
	1: "AGGREGATION_TEMPORALITY_DELTA",
	2: "AGGREGATION_TEMPORALITY_CUMULATIVE",
}
View Source
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

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

func (AggregationTemporality) EnumDescriptor() ([]byte, []int)

func (AggregationTemporality) String

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"`
}

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

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) MarshalTo

func (m *DoubleDataPoint) MarshalTo(dAtA []byte) (int, error)

func (*DoubleDataPoint) MarshalToSizedBuffer

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

func (m *DoubleDataPoint) XXX_DiscardUnknown()

func (*DoubleDataPoint) XXX_Marshal

func (m *DoubleDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleDataPoint) XXX_Merge

func (m *DoubleDataPoint) XXX_Merge(src proto.Message)

func (*DoubleDataPoint) XXX_Size

func (m *DoubleDataPoint) XXX_Size() int

func (*DoubleDataPoint) XXX_Unmarshal

func (m *DoubleDataPoint) XXX_Unmarshal(b []byte) error

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"`
	// 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

func (*DoubleExemplar) Descriptor() ([]byte, []int)

func (*DoubleExemplar) GetFilteredLabels

func (m *DoubleExemplar) GetFilteredLabels() []v11.StringKeyValue

func (*DoubleExemplar) GetTimeUnixNano

func (m *DoubleExemplar) GetTimeUnixNano() uint64

func (*DoubleExemplar) GetValue

func (m *DoubleExemplar) GetValue() float64

func (*DoubleExemplar) Marshal

func (m *DoubleExemplar) Marshal() (dAtA []byte, err error)

func (*DoubleExemplar) MarshalTo

func (m *DoubleExemplar) MarshalTo(dAtA []byte) (int, error)

func (*DoubleExemplar) MarshalToSizedBuffer

func (m *DoubleExemplar) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleExemplar) ProtoMessage

func (*DoubleExemplar) ProtoMessage()

func (*DoubleExemplar) Reset

func (m *DoubleExemplar) Reset()

func (*DoubleExemplar) Size

func (m *DoubleExemplar) Size() (n int)

func (*DoubleExemplar) String

func (m *DoubleExemplar) String() string

func (*DoubleExemplar) Unmarshal

func (m *DoubleExemplar) Unmarshal(dAtA []byte) error

func (*DoubleExemplar) XXX_DiscardUnknown

func (m *DoubleExemplar) XXX_DiscardUnknown()

func (*DoubleExemplar) XXX_Marshal

func (m *DoubleExemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleExemplar) XXX_Merge

func (m *DoubleExemplar) XXX_Merge(src proto.Message)

func (*DoubleExemplar) XXX_Size

func (m *DoubleExemplar) XXX_Size() int

func (*DoubleExemplar) XXX_Unmarshal

func (m *DoubleExemplar) XXX_Unmarshal(b []byte) error

type DoubleGauge

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

func (*DoubleGauge) Descriptor() ([]byte, []int)

func (*DoubleGauge) GetDataPoints

func (m *DoubleGauge) GetDataPoints() []*DoubleDataPoint

func (*DoubleGauge) Marshal

func (m *DoubleGauge) Marshal() (dAtA []byte, err error)

func (*DoubleGauge) MarshalTo

func (m *DoubleGauge) MarshalTo(dAtA []byte) (int, error)

func (*DoubleGauge) MarshalToSizedBuffer

func (m *DoubleGauge) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleGauge) ProtoMessage

func (*DoubleGauge) ProtoMessage()

func (*DoubleGauge) Reset

func (m *DoubleGauge) Reset()

func (*DoubleGauge) Size

func (m *DoubleGauge) Size() (n int)

func (*DoubleGauge) String

func (m *DoubleGauge) String() string

func (*DoubleGauge) Unmarshal

func (m *DoubleGauge) Unmarshal(dAtA []byte) error

func (*DoubleGauge) XXX_DiscardUnknown

func (m *DoubleGauge) XXX_DiscardUnknown()

func (*DoubleGauge) XXX_Marshal

func (m *DoubleGauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleGauge) XXX_Merge

func (m *DoubleGauge) XXX_Merge(src proto.Message)

func (*DoubleGauge) XXX_Size

func (m *DoubleGauge) XXX_Size() int

func (*DoubleGauge) XXX_Unmarshal

func (m *DoubleGauge) XXX_Unmarshal(b []byte) error

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 */
}

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

func (*DoubleHistogram) Descriptor() ([]byte, []int)

func (*DoubleHistogram) GetAggregationTemporality

func (m *DoubleHistogram) GetAggregationTemporality() AggregationTemporality

func (*DoubleHistogram) GetDataPoints

func (m *DoubleHistogram) GetDataPoints() []*DoubleHistogramDataPoint

func (*DoubleHistogram) Marshal

func (m *DoubleHistogram) Marshal() (dAtA []byte, err error)

func (*DoubleHistogram) MarshalTo

func (m *DoubleHistogram) MarshalTo(dAtA []byte) (int, error)

func (*DoubleHistogram) MarshalToSizedBuffer

func (m *DoubleHistogram) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleHistogram) ProtoMessage

func (*DoubleHistogram) ProtoMessage()

func (*DoubleHistogram) Reset

func (m *DoubleHistogram) Reset()

func (*DoubleHistogram) Size

func (m *DoubleHistogram) Size() (n int)

func (*DoubleHistogram) String

func (m *DoubleHistogram) String() string

func (*DoubleHistogram) Unmarshal

func (m *DoubleHistogram) Unmarshal(dAtA []byte) error

func (*DoubleHistogram) XXX_DiscardUnknown

func (m *DoubleHistogram) XXX_DiscardUnknown()

func (*DoubleHistogram) XXX_Marshal

func (m *DoubleHistogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleHistogram) XXX_Merge

func (m *DoubleHistogram) XXX_Merge(src proto.Message)

func (*DoubleHistogram) XXX_Size

func (m *DoubleHistogram) XXX_Size() int

func (*DoubleHistogram) XXX_Unmarshal

func (m *DoubleHistogram) XXX_Unmarshal(b []byte) error

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"`
	// 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"`
}

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

func (*DoubleHistogramDataPoint) Descriptor() ([]byte, []int)

func (*DoubleHistogramDataPoint) GetBucketCounts

func (m *DoubleHistogramDataPoint) GetBucketCounts() []uint64

func (*DoubleHistogramDataPoint) GetCount

func (m *DoubleHistogramDataPoint) GetCount() uint64

func (*DoubleHistogramDataPoint) GetExemplars

func (m *DoubleHistogramDataPoint) GetExemplars() []DoubleExemplar

func (*DoubleHistogramDataPoint) GetExplicitBounds

func (m *DoubleHistogramDataPoint) GetExplicitBounds() []float64

func (*DoubleHistogramDataPoint) GetLabels

func (m *DoubleHistogramDataPoint) GetLabels() []v11.StringKeyValue

func (*DoubleHistogramDataPoint) GetStartTimeUnixNano

func (m *DoubleHistogramDataPoint) GetStartTimeUnixNano() uint64

func (*DoubleHistogramDataPoint) GetSum

func (m *DoubleHistogramDataPoint) GetSum() float64

func (*DoubleHistogramDataPoint) GetTimeUnixNano

func (m *DoubleHistogramDataPoint) GetTimeUnixNano() uint64

func (*DoubleHistogramDataPoint) Marshal

func (m *DoubleHistogramDataPoint) Marshal() (dAtA []byte, err error)

func (*DoubleHistogramDataPoint) MarshalTo

func (m *DoubleHistogramDataPoint) MarshalTo(dAtA []byte) (int, error)

func (*DoubleHistogramDataPoint) MarshalToSizedBuffer

func (m *DoubleHistogramDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleHistogramDataPoint) ProtoMessage

func (*DoubleHistogramDataPoint) ProtoMessage()

func (*DoubleHistogramDataPoint) Reset

func (m *DoubleHistogramDataPoint) Reset()

func (*DoubleHistogramDataPoint) Size

func (m *DoubleHistogramDataPoint) Size() (n int)

func (*DoubleHistogramDataPoint) String

func (m *DoubleHistogramDataPoint) String() string

func (*DoubleHistogramDataPoint) Unmarshal

func (m *DoubleHistogramDataPoint) Unmarshal(dAtA []byte) error

func (*DoubleHistogramDataPoint) XXX_DiscardUnknown

func (m *DoubleHistogramDataPoint) XXX_DiscardUnknown()

func (*DoubleHistogramDataPoint) XXX_Marshal

func (m *DoubleHistogramDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleHistogramDataPoint) XXX_Merge

func (m *DoubleHistogramDataPoint) XXX_Merge(src proto.Message)

func (*DoubleHistogramDataPoint) XXX_Size

func (m *DoubleHistogramDataPoint) XXX_Size() int

func (*DoubleHistogramDataPoint) XXX_Unmarshal

func (m *DoubleHistogramDataPoint) XXX_Unmarshal(b []byte) error

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"`
}

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

func (*DoubleSum) Descriptor() ([]byte, []int)

func (*DoubleSum) GetAggregationTemporality

func (m *DoubleSum) GetAggregationTemporality() AggregationTemporality

func (*DoubleSum) GetDataPoints

func (m *DoubleSum) GetDataPoints() []*DoubleDataPoint

func (*DoubleSum) GetIsMonotonic

func (m *DoubleSum) GetIsMonotonic() bool

func (*DoubleSum) Marshal

func (m *DoubleSum) Marshal() (dAtA []byte, err error)

func (*DoubleSum) MarshalTo

func (m *DoubleSum) MarshalTo(dAtA []byte) (int, error)

func (*DoubleSum) MarshalToSizedBuffer

func (m *DoubleSum) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleSum) ProtoMessage

func (*DoubleSum) ProtoMessage()

func (*DoubleSum) Reset

func (m *DoubleSum) Reset()

func (*DoubleSum) Size

func (m *DoubleSum) Size() (n int)

func (*DoubleSum) String

func (m *DoubleSum) String() string

func (*DoubleSum) Unmarshal

func (m *DoubleSum) Unmarshal(dAtA []byte) error

func (*DoubleSum) XXX_DiscardUnknown

func (m *DoubleSum) XXX_DiscardUnknown()

func (*DoubleSum) XXX_Marshal

func (m *DoubleSum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleSum) XXX_Merge

func (m *DoubleSum) XXX_Merge(src proto.Message)

func (*DoubleSum) XXX_Size

func (m *DoubleSum) XXX_Size() int

func (*DoubleSum) XXX_Unmarshal

func (m *DoubleSum) XXX_Unmarshal(b []byte) error

type DoubleSummary

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

func (*DoubleSummary) Descriptor() ([]byte, []int)

func (*DoubleSummary) GetDataPoints

func (m *DoubleSummary) GetDataPoints() []*DoubleSummaryDataPoint

func (*DoubleSummary) Marshal

func (m *DoubleSummary) Marshal() (dAtA []byte, err error)

func (*DoubleSummary) MarshalTo

func (m *DoubleSummary) MarshalTo(dAtA []byte) (int, error)

func (*DoubleSummary) MarshalToSizedBuffer

func (m *DoubleSummary) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleSummary) ProtoMessage

func (*DoubleSummary) ProtoMessage()

func (*DoubleSummary) Reset

func (m *DoubleSummary) Reset()

func (*DoubleSummary) Size

func (m *DoubleSummary) Size() (n int)

func (*DoubleSummary) String

func (m *DoubleSummary) String() string

func (*DoubleSummary) Unmarshal

func (m *DoubleSummary) Unmarshal(dAtA []byte) error

func (*DoubleSummary) XXX_DiscardUnknown

func (m *DoubleSummary) XXX_DiscardUnknown()

func (*DoubleSummary) XXX_Marshal

func (m *DoubleSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleSummary) XXX_Merge

func (m *DoubleSummary) XXX_Merge(src proto.Message)

func (*DoubleSummary) XXX_Size

func (m *DoubleSummary) XXX_Size() int

func (*DoubleSummary) XXX_Unmarshal

func (m *DoubleSummary) XXX_Unmarshal(b []byte) error

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"`
	// 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

func (*DoubleSummaryDataPoint) Descriptor() ([]byte, []int)

func (*DoubleSummaryDataPoint) GetCount

func (m *DoubleSummaryDataPoint) GetCount() uint64

func (*DoubleSummaryDataPoint) GetLabels

func (m *DoubleSummaryDataPoint) GetLabels() []v11.StringKeyValue

func (*DoubleSummaryDataPoint) GetQuantileValues

func (*DoubleSummaryDataPoint) GetStartTimeUnixNano

func (m *DoubleSummaryDataPoint) GetStartTimeUnixNano() uint64

func (*DoubleSummaryDataPoint) GetSum

func (m *DoubleSummaryDataPoint) GetSum() float64

func (*DoubleSummaryDataPoint) GetTimeUnixNano

func (m *DoubleSummaryDataPoint) GetTimeUnixNano() uint64

func (*DoubleSummaryDataPoint) Marshal

func (m *DoubleSummaryDataPoint) Marshal() (dAtA []byte, err error)

func (*DoubleSummaryDataPoint) MarshalTo

func (m *DoubleSummaryDataPoint) MarshalTo(dAtA []byte) (int, error)

func (*DoubleSummaryDataPoint) MarshalToSizedBuffer

func (m *DoubleSummaryDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleSummaryDataPoint) ProtoMessage

func (*DoubleSummaryDataPoint) ProtoMessage()

func (*DoubleSummaryDataPoint) Reset

func (m *DoubleSummaryDataPoint) Reset()

func (*DoubleSummaryDataPoint) Size

func (m *DoubleSummaryDataPoint) Size() (n int)

func (*DoubleSummaryDataPoint) String

func (m *DoubleSummaryDataPoint) String() string

func (*DoubleSummaryDataPoint) Unmarshal

func (m *DoubleSummaryDataPoint) Unmarshal(dAtA []byte) error

func (*DoubleSummaryDataPoint) XXX_DiscardUnknown

func (m *DoubleSummaryDataPoint) XXX_DiscardUnknown()

func (*DoubleSummaryDataPoint) XXX_Marshal

func (m *DoubleSummaryDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleSummaryDataPoint) XXX_Merge

func (m *DoubleSummaryDataPoint) XXX_Merge(src proto.Message)

func (*DoubleSummaryDataPoint) XXX_Size

func (m *DoubleSummaryDataPoint) XXX_Size() int

func (*DoubleSummaryDataPoint) XXX_Unmarshal

func (m *DoubleSummaryDataPoint) XXX_Unmarshal(b []byte) error

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"`
}

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

func (*DoubleSummaryDataPoint_ValueAtQuantile) Descriptor() ([]byte, []int)

func (*DoubleSummaryDataPoint_ValueAtQuantile) GetQuantile

func (*DoubleSummaryDataPoint_ValueAtQuantile) GetValue

func (*DoubleSummaryDataPoint_ValueAtQuantile) Marshal

func (m *DoubleSummaryDataPoint_ValueAtQuantile) Marshal() (dAtA []byte, err error)

func (*DoubleSummaryDataPoint_ValueAtQuantile) MarshalTo

func (m *DoubleSummaryDataPoint_ValueAtQuantile) MarshalTo(dAtA []byte) (int, error)

func (*DoubleSummaryDataPoint_ValueAtQuantile) MarshalToSizedBuffer

func (m *DoubleSummaryDataPoint_ValueAtQuantile) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleSummaryDataPoint_ValueAtQuantile) ProtoMessage

func (*DoubleSummaryDataPoint_ValueAtQuantile) Reset

func (*DoubleSummaryDataPoint_ValueAtQuantile) Size

func (*DoubleSummaryDataPoint_ValueAtQuantile) String

func (*DoubleSummaryDataPoint_ValueAtQuantile) Unmarshal

func (m *DoubleSummaryDataPoint_ValueAtQuantile) Unmarshal(dAtA []byte) error

func (*DoubleSummaryDataPoint_ValueAtQuantile) XXX_DiscardUnknown

func (m *DoubleSummaryDataPoint_ValueAtQuantile) XXX_DiscardUnknown()

func (*DoubleSummaryDataPoint_ValueAtQuantile) XXX_Marshal

func (m *DoubleSummaryDataPoint_ValueAtQuantile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleSummaryDataPoint_ValueAtQuantile) XXX_Merge

func (*DoubleSummaryDataPoint_ValueAtQuantile) XXX_Size

func (*DoubleSummaryDataPoint_ValueAtQuantile) XXX_Unmarshal

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

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 (*InstrumentationLibraryMetrics) Unmarshal

func (m *InstrumentationLibraryMetrics) Unmarshal(dAtA []byte) error

func (*InstrumentationLibraryMetrics) XXX_DiscardUnknown

func (m *InstrumentationLibraryMetrics) XXX_DiscardUnknown()

func (*InstrumentationLibraryMetrics) XXX_Marshal

func (m *InstrumentationLibraryMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InstrumentationLibraryMetrics) XXX_Merge

func (m *InstrumentationLibraryMetrics) XXX_Merge(src proto.Message)

func (*InstrumentationLibraryMetrics) XXX_Size

func (m *InstrumentationLibraryMetrics) XXX_Size() int

func (*InstrumentationLibraryMetrics) XXX_Unmarshal

func (m *InstrumentationLibraryMetrics) XXX_Unmarshal(b []byte) error

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"`
	// 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"`
}

IntDataPoint is a single data point in a timeseries that describes the time-varying values of a int64 metric.

func (*IntDataPoint) Descriptor

func (*IntDataPoint) Descriptor() ([]byte, []int)

func (*IntDataPoint) GetExemplars

func (m *IntDataPoint) GetExemplars() []IntExemplar

func (*IntDataPoint) GetLabels

func (m *IntDataPoint) GetLabels() []v11.StringKeyValue

func (*IntDataPoint) GetStartTimeUnixNano

func (m *IntDataPoint) GetStartTimeUnixNano() uint64

func (*IntDataPoint) GetTimeUnixNano

func (m *IntDataPoint) GetTimeUnixNano() uint64

func (*IntDataPoint) GetValue

func (m *IntDataPoint) GetValue() int64

func (*IntDataPoint) Marshal

func (m *IntDataPoint) Marshal() (dAtA []byte, err error)

func (*IntDataPoint) MarshalTo

func (m *IntDataPoint) MarshalTo(dAtA []byte) (int, error)

func (*IntDataPoint) MarshalToSizedBuffer

func (m *IntDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IntDataPoint) ProtoMessage

func (*IntDataPoint) ProtoMessage()

func (*IntDataPoint) Reset

func (m *IntDataPoint) Reset()

func (*IntDataPoint) Size

func (m *IntDataPoint) Size() (n int)

func (*IntDataPoint) String

func (m *IntDataPoint) String() string

func (*IntDataPoint) Unmarshal

func (m *IntDataPoint) Unmarshal(dAtA []byte) error

func (*IntDataPoint) XXX_DiscardUnknown

func (m *IntDataPoint) XXX_DiscardUnknown()

func (*IntDataPoint) XXX_Marshal

func (m *IntDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntDataPoint) XXX_Merge

func (m *IntDataPoint) XXX_Merge(src proto.Message)

func (*IntDataPoint) XXX_Size

func (m *IntDataPoint) XXX_Size() int

func (*IntDataPoint) XXX_Unmarshal

func (m *IntDataPoint) XXX_Unmarshal(b []byte) error

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"`
	// 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

func (*IntExemplar) Descriptor() ([]byte, []int)

func (*IntExemplar) GetFilteredLabels

func (m *IntExemplar) GetFilteredLabels() []v11.StringKeyValue

func (*IntExemplar) GetTimeUnixNano

func (m *IntExemplar) GetTimeUnixNano() uint64

func (*IntExemplar) GetValue

func (m *IntExemplar) GetValue() int64

func (*IntExemplar) Marshal

func (m *IntExemplar) Marshal() (dAtA []byte, err error)

func (*IntExemplar) MarshalTo

func (m *IntExemplar) MarshalTo(dAtA []byte) (int, error)

func (*IntExemplar) MarshalToSizedBuffer

func (m *IntExemplar) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IntExemplar) ProtoMessage

func (*IntExemplar) ProtoMessage()

func (*IntExemplar) Reset

func (m *IntExemplar) Reset()

func (*IntExemplar) Size

func (m *IntExemplar) Size() (n int)

func (*IntExemplar) String

func (m *IntExemplar) String() string

func (*IntExemplar) Unmarshal

func (m *IntExemplar) Unmarshal(dAtA []byte) error

func (*IntExemplar) XXX_DiscardUnknown

func (m *IntExemplar) XXX_DiscardUnknown()

func (*IntExemplar) XXX_Marshal

func (m *IntExemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntExemplar) XXX_Merge

func (m *IntExemplar) XXX_Merge(src proto.Message)

func (*IntExemplar) XXX_Size

func (m *IntExemplar) XXX_Size() int

func (*IntExemplar) XXX_Unmarshal

func (m *IntExemplar) XXX_Unmarshal(b []byte) error

type IntGauge

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

func (*IntGauge) Descriptor() ([]byte, []int)

func (*IntGauge) GetDataPoints

func (m *IntGauge) GetDataPoints() []*IntDataPoint

func (*IntGauge) Marshal

func (m *IntGauge) Marshal() (dAtA []byte, err error)

func (*IntGauge) MarshalTo

func (m *IntGauge) MarshalTo(dAtA []byte) (int, error)

func (*IntGauge) MarshalToSizedBuffer

func (m *IntGauge) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IntGauge) ProtoMessage

func (*IntGauge) ProtoMessage()

func (*IntGauge) Reset

func (m *IntGauge) Reset()

func (*IntGauge) Size

func (m *IntGauge) Size() (n int)

func (*IntGauge) String

func (m *IntGauge) String() string

func (*IntGauge) Unmarshal

func (m *IntGauge) Unmarshal(dAtA []byte) error

func (*IntGauge) XXX_DiscardUnknown

func (m *IntGauge) XXX_DiscardUnknown()

func (*IntGauge) XXX_Marshal

func (m *IntGauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntGauge) XXX_Merge

func (m *IntGauge) XXX_Merge(src proto.Message)

func (*IntGauge) XXX_Size

func (m *IntGauge) XXX_Size() int

func (*IntGauge) XXX_Unmarshal

func (m *IntGauge) XXX_Unmarshal(b []byte) error

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 */
}

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

func (*IntHistogram) Descriptor() ([]byte, []int)

func (*IntHistogram) GetAggregationTemporality

func (m *IntHistogram) GetAggregationTemporality() AggregationTemporality

func (*IntHistogram) GetDataPoints

func (m *IntHistogram) GetDataPoints() []*IntHistogramDataPoint

func (*IntHistogram) Marshal

func (m *IntHistogram) Marshal() (dAtA []byte, err error)

func (*IntHistogram) MarshalTo

func (m *IntHistogram) MarshalTo(dAtA []byte) (int, error)

func (*IntHistogram) MarshalToSizedBuffer

func (m *IntHistogram) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IntHistogram) ProtoMessage

func (*IntHistogram) ProtoMessage()

func (*IntHistogram) Reset

func (m *IntHistogram) Reset()

func (*IntHistogram) Size

func (m *IntHistogram) Size() (n int)

func (*IntHistogram) String

func (m *IntHistogram) String() string

func (*IntHistogram) Unmarshal

func (m *IntHistogram) Unmarshal(dAtA []byte) error

func (*IntHistogram) XXX_DiscardUnknown

func (m *IntHistogram) XXX_DiscardUnknown()

func (*IntHistogram) XXX_Marshal

func (m *IntHistogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntHistogram) XXX_Merge

func (m *IntHistogram) XXX_Merge(src proto.Message)

func (*IntHistogram) XXX_Size

func (m *IntHistogram) XXX_Size() int

func (*IntHistogram) XXX_Unmarshal

func (m *IntHistogram) XXX_Unmarshal(b []byte) error

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"`
	// 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"`
}

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

func (*IntHistogramDataPoint) Descriptor() ([]byte, []int)

func (*IntHistogramDataPoint) GetBucketCounts

func (m *IntHistogramDataPoint) GetBucketCounts() []uint64

func (*IntHistogramDataPoint) GetCount

func (m *IntHistogramDataPoint) GetCount() uint64

func (*IntHistogramDataPoint) GetExemplars

func (m *IntHistogramDataPoint) GetExemplars() []IntExemplar

func (*IntHistogramDataPoint) GetExplicitBounds

func (m *IntHistogramDataPoint) GetExplicitBounds() []float64

func (*IntHistogramDataPoint) GetLabels

func (m *IntHistogramDataPoint) GetLabels() []v11.StringKeyValue

func (*IntHistogramDataPoint) GetStartTimeUnixNano

func (m *IntHistogramDataPoint) GetStartTimeUnixNano() uint64

func (*IntHistogramDataPoint) GetSum

func (m *IntHistogramDataPoint) GetSum() int64

func (*IntHistogramDataPoint) GetTimeUnixNano

func (m *IntHistogramDataPoint) GetTimeUnixNano() uint64

func (*IntHistogramDataPoint) Marshal

func (m *IntHistogramDataPoint) Marshal() (dAtA []byte, err error)

func (*IntHistogramDataPoint) MarshalTo

func (m *IntHistogramDataPoint) MarshalTo(dAtA []byte) (int, error)

func (*IntHistogramDataPoint) MarshalToSizedBuffer

func (m *IntHistogramDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IntHistogramDataPoint) ProtoMessage

func (*IntHistogramDataPoint) ProtoMessage()

func (*IntHistogramDataPoint) Reset

func (m *IntHistogramDataPoint) Reset()

func (*IntHistogramDataPoint) Size

func (m *IntHistogramDataPoint) Size() (n int)

func (*IntHistogramDataPoint) String

func (m *IntHistogramDataPoint) String() string

func (*IntHistogramDataPoint) Unmarshal

func (m *IntHistogramDataPoint) Unmarshal(dAtA []byte) error

func (*IntHistogramDataPoint) XXX_DiscardUnknown

func (m *IntHistogramDataPoint) XXX_DiscardUnknown()

func (*IntHistogramDataPoint) XXX_Marshal

func (m *IntHistogramDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntHistogramDataPoint) XXX_Merge

func (m *IntHistogramDataPoint) XXX_Merge(src proto.Message)

func (*IntHistogramDataPoint) XXX_Size

func (m *IntHistogramDataPoint) XXX_Size() int

func (*IntHistogramDataPoint) XXX_Unmarshal

func (m *IntHistogramDataPoint) XXX_Unmarshal(b []byte) error

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"`
}

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

func (*IntSum) Descriptor() ([]byte, []int)

func (*IntSum) GetAggregationTemporality

func (m *IntSum) GetAggregationTemporality() AggregationTemporality

func (*IntSum) GetDataPoints

func (m *IntSum) GetDataPoints() []*IntDataPoint

func (*IntSum) GetIsMonotonic

func (m *IntSum) GetIsMonotonic() bool

func (*IntSum) Marshal

func (m *IntSum) Marshal() (dAtA []byte, err error)

func (*IntSum) MarshalTo

func (m *IntSum) MarshalTo(dAtA []byte) (int, error)

func (*IntSum) MarshalToSizedBuffer

func (m *IntSum) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IntSum) ProtoMessage

func (*IntSum) ProtoMessage()

func (*IntSum) Reset

func (m *IntSum) Reset()

func (*IntSum) Size

func (m *IntSum) Size() (n int)

func (*IntSum) String

func (m *IntSum) String() string

func (*IntSum) Unmarshal

func (m *IntSum) Unmarshal(dAtA []byte) error

func (*IntSum) XXX_DiscardUnknown

func (m *IntSum) XXX_DiscardUnknown()

func (*IntSum) XXX_Marshal

func (m *IntSum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IntSum) XXX_Merge

func (m *IntSum) XXX_Merge(src proto.Message)

func (*IntSum) XXX_Size

func (m *IntSum) XXX_Size() int

func (*IntSum) XXX_Unmarshal

func (m *IntSum) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Metric) GetData

func (m *Metric) GetData() isMetric_Data

func (*Metric) GetDescription

func (m *Metric) GetDescription() string

func (*Metric) GetDoubleGauge

func (m *Metric) GetDoubleGauge() *DoubleGauge

func (*Metric) GetDoubleHistogram

func (m *Metric) GetDoubleHistogram() *DoubleHistogram

func (*Metric) GetDoubleSum

func (m *Metric) GetDoubleSum() *DoubleSum

func (*Metric) GetDoubleSummary

func (m *Metric) GetDoubleSummary() *DoubleSummary

func (*Metric) GetIntGauge

func (m *Metric) GetIntGauge() *IntGauge

func (*Metric) GetIntHistogram

func (m *Metric) GetIntHistogram() *IntHistogram

func (*Metric) GetIntSum

func (m *Metric) GetIntSum() *IntSum

func (*Metric) GetName

func (m *Metric) GetName() string

func (*Metric) GetUnit

func (m *Metric) GetUnit() string

func (*Metric) Marshal

func (m *Metric) Marshal() (dAtA []byte, err error)

func (*Metric) MarshalTo

func (m *Metric) MarshalTo(dAtA []byte) (int, error)

func (*Metric) MarshalToSizedBuffer

func (m *Metric) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) Reset

func (m *Metric) Reset()

func (*Metric) Size

func (m *Metric) Size() (n int)

func (*Metric) String

func (m *Metric) String() string

func (*Metric) Unmarshal

func (m *Metric) Unmarshal(dAtA []byte) error

func (*Metric) XXX_DiscardUnknown

func (m *Metric) XXX_DiscardUnknown()

func (*Metric) XXX_Marshal

func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Metric) XXX_Merge

func (m *Metric) XXX_Merge(src proto.Message)

func (*Metric) XXX_OneofWrappers

func (*Metric) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Metric) XXX_Size

func (m *Metric) XXX_Size() int

func (*Metric) XXX_Unmarshal

func (m *Metric) XXX_Unmarshal(b []byte) error

type Metric_DoubleGauge

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

func (m *Metric_DoubleGauge) MarshalTo(dAtA []byte) (int, error)

func (*Metric_DoubleGauge) MarshalToSizedBuffer

func (m *Metric_DoubleGauge) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric_DoubleGauge) Size

func (m *Metric_DoubleGauge) Size() (n int)

type Metric_DoubleHistogram

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

func (m *Metric_DoubleHistogram) MarshalTo(dAtA []byte) (int, error)

func (*Metric_DoubleHistogram) MarshalToSizedBuffer

func (m *Metric_DoubleHistogram) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric_DoubleHistogram) Size

func (m *Metric_DoubleHistogram) Size() (n int)

type Metric_DoubleSum

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

func (m *Metric_DoubleSum) MarshalTo(dAtA []byte) (int, error)

func (*Metric_DoubleSum) MarshalToSizedBuffer

func (m *Metric_DoubleSum) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric_DoubleSum) Size

func (m *Metric_DoubleSum) Size() (n int)

type Metric_DoubleSummary

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

func (m *Metric_DoubleSummary) MarshalTo(dAtA []byte) (int, error)

func (*Metric_DoubleSummary) MarshalToSizedBuffer

func (m *Metric_DoubleSummary) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric_DoubleSummary) Size

func (m *Metric_DoubleSummary) Size() (n int)

type Metric_IntGauge

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

func (m *Metric_IntGauge) MarshalTo(dAtA []byte) (int, error)

func (*Metric_IntGauge) MarshalToSizedBuffer

func (m *Metric_IntGauge) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric_IntGauge) Size

func (m *Metric_IntGauge) Size() (n int)

type Metric_IntHistogram

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

func (m *Metric_IntHistogram) MarshalTo(dAtA []byte) (int, error)

func (*Metric_IntHistogram) MarshalToSizedBuffer

func (m *Metric_IntHistogram) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric_IntHistogram) Size

func (m *Metric_IntHistogram) Size() (n int)

type Metric_IntSum

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

func (m *Metric_IntSum) MarshalTo(dAtA []byte) (int, error)

func (*Metric_IntSum) MarshalToSizedBuffer

func (m *Metric_IntSum) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metric_IntSum) Size

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) MarshalTo

func (m *ResourceMetrics) MarshalTo(dAtA []byte) (int, error)

func (*ResourceMetrics) MarshalToSizedBuffer

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

func (m *ResourceMetrics) XXX_DiscardUnknown()

func (*ResourceMetrics) XXX_Marshal

func (m *ResourceMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceMetrics) XXX_Merge

func (m *ResourceMetrics) XXX_Merge(src proto.Message)

func (*ResourceMetrics) XXX_Size

func (m *ResourceMetrics) XXX_Size() int

func (*ResourceMetrics) XXX_Unmarshal

func (m *ResourceMetrics) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL