v1

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 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 Exemplar

type Exemplar 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 value of the measurement that was recorded. An exemplar is
	// considered invalid when one of the recognized value fields is not present
	// inside this oneof.
	//
	// Types that are valid to be assigned to Value:
	//	*Exemplar_AsDouble
	//	*Exemplar_AsInt
	Value isExemplar_Value `protobuf_oneof:"value"`
	// (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_model_internal_data.SpanID `` /* 137-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_model_internal_data.TraceID `` /* 141-byte string literal not displayed */
}

A representation of an exemplar, which is a sample input 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 (*Exemplar) Descriptor

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

func (*Exemplar) GetAsDouble

func (m *Exemplar) GetAsDouble() float64

func (*Exemplar) GetAsInt

func (m *Exemplar) GetAsInt() int64

func (*Exemplar) GetFilteredLabels

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

func (*Exemplar) GetTimeUnixNano

func (m *Exemplar) GetTimeUnixNano() uint64

func (*Exemplar) GetValue

func (m *Exemplar) GetValue() isExemplar_Value

func (*Exemplar) Marshal

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

func (*Exemplar) MarshalTo

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

func (*Exemplar) MarshalToSizedBuffer

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

func (*Exemplar) ProtoMessage

func (*Exemplar) ProtoMessage()

func (*Exemplar) Reset

func (m *Exemplar) Reset()

func (*Exemplar) Size

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

func (*Exemplar) String

func (m *Exemplar) String() string

func (*Exemplar) Unmarshal

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

func (*Exemplar) XXX_DiscardUnknown

func (m *Exemplar) XXX_DiscardUnknown()

func (*Exemplar) XXX_Marshal

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

func (*Exemplar) XXX_Merge

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

func (*Exemplar) XXX_OneofWrappers

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*Exemplar) XXX_Size

func (m *Exemplar) XXX_Size() int

func (*Exemplar) XXX_Unmarshal

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

type Exemplar_AsDouble

type Exemplar_AsDouble struct {
	AsDouble float64 `protobuf:"fixed64,3,opt,name=as_double,json=asDouble,proto3,oneof" json:"as_double,omitempty"`
}

func (*Exemplar_AsDouble) MarshalTo

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

func (*Exemplar_AsDouble) MarshalToSizedBuffer

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

func (*Exemplar_AsDouble) Size

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

type Exemplar_AsInt

type Exemplar_AsInt struct {
	AsInt int64 `protobuf:"fixed64,6,opt,name=as_int,json=asInt,proto3,oneof" json:"as_int,omitempty"`
}

func (*Exemplar_AsInt) MarshalTo

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

func (*Exemplar_AsInt) MarshalToSizedBuffer

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

func (*Exemplar_AsInt) Size

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

type Gauge

type Gauge struct {
	DataPoints []*NumberDataPoint `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 (*Gauge) Descriptor

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

func (*Gauge) GetDataPoints

func (m *Gauge) GetDataPoints() []*NumberDataPoint

func (*Gauge) Marshal

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

func (*Gauge) MarshalTo

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

func (*Gauge) MarshalToSizedBuffer

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

func (*Gauge) ProtoMessage

func (*Gauge) ProtoMessage()

func (*Gauge) Reset

func (m *Gauge) Reset()

func (*Gauge) Size

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

func (*Gauge) String

func (m *Gauge) String() string

func (*Gauge) Unmarshal

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

func (*Gauge) XXX_DiscardUnknown

func (m *Gauge) XXX_DiscardUnknown()

func (*Gauge) XXX_Marshal

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

func (*Gauge) XXX_Merge

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

func (*Gauge) XXX_Size

func (m *Gauge) XXX_Size() int

func (*Gauge) XXX_Unmarshal

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

type Histogram

type Histogram struct {
	DataPoints []*HistogramDataPoint `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 */
}

Histogram represents the type of a metric that is calculated by aggregating as a Histogram of all reported double measurements over a time interval.

func (*Histogram) Descriptor

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

func (*Histogram) GetAggregationTemporality

func (m *Histogram) GetAggregationTemporality() AggregationTemporality

func (*Histogram) GetDataPoints

func (m *Histogram) GetDataPoints() []*HistogramDataPoint

func (*Histogram) Marshal

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

func (*Histogram) MarshalTo

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

func (*Histogram) MarshalToSizedBuffer

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

func (*Histogram) ProtoMessage

func (*Histogram) ProtoMessage()

func (*Histogram) Reset

func (m *Histogram) Reset()

func (*Histogram) Size

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

func (*Histogram) String

func (m *Histogram) String() string

func (*Histogram) Unmarshal

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

func (*Histogram) XXX_DiscardUnknown

func (m *Histogram) XXX_DiscardUnknown()

func (*Histogram) XXX_Marshal

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

func (*Histogram) XXX_Merge

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

func (*Histogram) XXX_Size

func (m *Histogram) XXX_Size() int

func (*Histogram) XXX_Unmarshal

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

type HistogramDataPoint

type HistogramDataPoint 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.
	//
	// This defines size(explicit_bounds) + 1 (= N) buckets. The boundaries for
	// bucket at index i are:
	//
	// (-infinity, explicit_bounds[i]] for i == 0
	// (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < N-1
	// (explicit_bounds[i], +infinity) for i == N-1
	//
	// The values in the explicit_bounds array must be strictly increasing.
	//
	// Histogram buckets are inclusive of their upper boundary, except the last
	// bucket where the boundary is at infinity. This format is intentionally
	// compatible with the OpenMetrics histogram definition.
	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 []*Exemplar `protobuf:"bytes,8,rep,name=exemplars,proto3" json:"exemplars,omitempty"`
}

HistogramDataPoint is a single data point in a timeseries that describes the time-varying values of a Histogram of double values. A Histogram contains summary statistics for a population of values, it may optionally contain the distribution of those values across a set of buckets.

func (*HistogramDataPoint) Descriptor

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

func (*HistogramDataPoint) GetBucketCounts

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

func (*HistogramDataPoint) GetCount

func (m *HistogramDataPoint) GetCount() uint64

func (*HistogramDataPoint) GetExemplars

func (m *HistogramDataPoint) GetExemplars() []*Exemplar

func (*HistogramDataPoint) GetExplicitBounds

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

func (*HistogramDataPoint) GetLabels

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

func (*HistogramDataPoint) GetStartTimeUnixNano

func (m *HistogramDataPoint) GetStartTimeUnixNano() uint64

func (*HistogramDataPoint) GetSum

func (m *HistogramDataPoint) GetSum() float64

func (*HistogramDataPoint) GetTimeUnixNano

func (m *HistogramDataPoint) GetTimeUnixNano() uint64

func (*HistogramDataPoint) Marshal

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

func (*HistogramDataPoint) MarshalTo

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

func (*HistogramDataPoint) MarshalToSizedBuffer

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

func (*HistogramDataPoint) ProtoMessage

func (*HistogramDataPoint) ProtoMessage()

func (*HistogramDataPoint) Reset

func (m *HistogramDataPoint) Reset()

func (*HistogramDataPoint) Size

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

func (*HistogramDataPoint) String

func (m *HistogramDataPoint) String() string

func (*HistogramDataPoint) Unmarshal

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

func (*HistogramDataPoint) XXX_DiscardUnknown

func (m *HistogramDataPoint) XXX_DiscardUnknown()

func (*HistogramDataPoint) XXX_Marshal

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

func (*HistogramDataPoint) XXX_Merge

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

func (*HistogramDataPoint) XXX_Size

func (m *HistogramDataPoint) XXX_Size() int

func (*HistogramDataPoint) XXX_Unmarshal

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

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 `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 deprecated

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.

Deprecated: Do not use.

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 deprecated

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_model_internal_data.SpanID `` /* 137-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_model_internal_data.TraceID `` /* 141-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.

Deprecated: Do not use.

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 deprecated

type IntGauge struct {
	DataPoints []*IntDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"`
}

IntGauge is deprecated. Use Gauge with an integer value in NumberDataPoint.

IntGauge 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.

Deprecated: Do not use.

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 deprecated

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

IntHistogram is deprecated, replaced by Histogram points using double- valued exemplars.

This represents the type of a metric that is calculated by aggregating as a Histogram of all reported int measurements over a time interval.

Deprecated: Do not use.

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 deprecated

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.
	//
	// This defines size(explicit_bounds) + 1 (= N) buckets. The boundaries for
	// bucket at index i are:
	//
	// (-infinity, explicit_bounds[i]] for i == 0
	// (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < N-1
	// (explicit_bounds[i], +infinity) for i == N-1
	//
	// The values in the explicit_bounds array must be strictly increasing.
	//
	// Histogram buckets are inclusive of their upper boundary, except the last
	// bucket where the boundary is at infinity. This format is intentionally
	// compatible with the OpenMetrics histogram definition.
	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 deprecated; use HistogramDataPoint.

This 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.

Deprecated: Do not use.

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 deprecated

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

IntSum is deprecated. Use Sum with an integer value in NumberDataPoint.

IntSum represents the type of a numeric int scalar metric that is calculated as a sum of all reported measurements over a time interval.

Deprecated: Do not use.

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.
	//
	// Types that are valid to be assigned to Data:
	//	*Metric_IntGauge
	//	*Metric_Gauge
	//	*Metric_IntSum
	//	*Metric_Sum
	//	*Metric_IntHistogram
	//	*Metric_Histogram
	//	*Metric_Summary
	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) GetGauge

func (m *Metric) GetGauge() *Gauge

func (*Metric) GetHistogram

func (m *Metric) GetHistogram() *Histogram

func (*Metric) GetIntGauge deprecated

func (m *Metric) GetIntGauge() *IntGauge

Deprecated: Do not use.

func (*Metric) GetIntHistogram deprecated

func (m *Metric) GetIntHistogram() *IntHistogram

Deprecated: Do not use.

func (*Metric) GetIntSum deprecated

func (m *Metric) GetIntSum() *IntSum

Deprecated: Do not use.

func (*Metric) GetName

func (m *Metric) GetName() string

func (*Metric) GetSum

func (m *Metric) GetSum() *Sum

func (*Metric) GetSummary

func (m *Metric) GetSummary() *Summary

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_Gauge

type Metric_Gauge struct {
	Gauge *Gauge `protobuf:"bytes,5,opt,name=gauge,proto3,oneof" json:"gauge,omitempty"`
}

func (*Metric_Gauge) MarshalTo

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

func (*Metric_Gauge) MarshalToSizedBuffer

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

func (*Metric_Gauge) Size

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

type Metric_Histogram

type Metric_Histogram struct {
	Histogram *Histogram `protobuf:"bytes,9,opt,name=histogram,proto3,oneof" json:"histogram,omitempty"`
}

func (*Metric_Histogram) MarshalTo

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

func (*Metric_Histogram) MarshalToSizedBuffer

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

func (*Metric_Histogram) Size

func (m *Metric_Histogram) 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 Metric_Sum

type Metric_Sum struct {
	Sum *Sum `protobuf:"bytes,7,opt,name=sum,proto3,oneof" json:"sum,omitempty"`
}

func (*Metric_Sum) MarshalTo

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

func (*Metric_Sum) MarshalToSizedBuffer

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

func (*Metric_Sum) Size

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

type Metric_Summary

type Metric_Summary struct {
	Summary *Summary `protobuf:"bytes,11,opt,name=summary,proto3,oneof" json:"summary,omitempty"`
}

func (*Metric_Summary) MarshalTo

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

func (*Metric_Summary) MarshalToSizedBuffer

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

func (*Metric_Summary) Size

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

type NumberDataPoint

type NumberDataPoint 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"`
	// The value itself.  A point is considered invalid when one of the recognized
	// value fields is not present inside this oneof.
	//
	// Types that are valid to be assigned to Value:
	//	*NumberDataPoint_AsDouble
	//	*NumberDataPoint_AsInt
	Value isNumberDataPoint_Value `protobuf_oneof:"value"`
	// (Optional) List of exemplars collected from
	// measurements that were used to form the data point
	Exemplars []*Exemplar `protobuf:"bytes,5,rep,name=exemplars,proto3" json:"exemplars,omitempty"`
}

NumberDataPoint is a single data point in a timeseries that describes the time-varying value of a double metric.

func (*NumberDataPoint) Descriptor

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

func (*NumberDataPoint) GetAsDouble

func (m *NumberDataPoint) GetAsDouble() float64

func (*NumberDataPoint) GetAsInt

func (m *NumberDataPoint) GetAsInt() int64

func (*NumberDataPoint) GetExemplars

func (m *NumberDataPoint) GetExemplars() []*Exemplar

func (*NumberDataPoint) GetLabels

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

func (*NumberDataPoint) GetStartTimeUnixNano

func (m *NumberDataPoint) GetStartTimeUnixNano() uint64

func (*NumberDataPoint) GetTimeUnixNano

func (m *NumberDataPoint) GetTimeUnixNano() uint64

func (*NumberDataPoint) GetValue

func (m *NumberDataPoint) GetValue() isNumberDataPoint_Value

func (*NumberDataPoint) Marshal

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

func (*NumberDataPoint) MarshalTo

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

func (*NumberDataPoint) MarshalToSizedBuffer

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

func (*NumberDataPoint) ProtoMessage

func (*NumberDataPoint) ProtoMessage()

func (*NumberDataPoint) Reset

func (m *NumberDataPoint) Reset()

func (*NumberDataPoint) Size

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

func (*NumberDataPoint) String

func (m *NumberDataPoint) String() string

func (*NumberDataPoint) Unmarshal

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

func (*NumberDataPoint) XXX_DiscardUnknown

func (m *NumberDataPoint) XXX_DiscardUnknown()

func (*NumberDataPoint) XXX_Marshal

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

func (*NumberDataPoint) XXX_Merge

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

func (*NumberDataPoint) XXX_OneofWrappers

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*NumberDataPoint) XXX_Size

func (m *NumberDataPoint) XXX_Size() int

func (*NumberDataPoint) XXX_Unmarshal

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

type NumberDataPoint_AsDouble

type NumberDataPoint_AsDouble struct {
	AsDouble float64 `protobuf:"fixed64,4,opt,name=as_double,json=asDouble,proto3,oneof" json:"as_double,omitempty"`
}

func (*NumberDataPoint_AsDouble) MarshalTo

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

func (*NumberDataPoint_AsDouble) MarshalToSizedBuffer

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

func (*NumberDataPoint_AsDouble) Size

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

type NumberDataPoint_AsInt

type NumberDataPoint_AsInt struct {
	AsInt int64 `protobuf:"fixed64,6,opt,name=as_int,json=asInt,proto3,oneof" json:"as_int,omitempty"`
}

func (*NumberDataPoint_AsInt) MarshalTo

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

func (*NumberDataPoint_AsInt) MarshalToSizedBuffer

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

func (*NumberDataPoint_AsInt) Size

func (m *NumberDataPoint_AsInt) 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

type Sum

type Sum struct {
	DataPoints []*NumberDataPoint `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 (*Sum) Descriptor

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

func (*Sum) GetAggregationTemporality

func (m *Sum) GetAggregationTemporality() AggregationTemporality

func (*Sum) GetDataPoints

func (m *Sum) GetDataPoints() []*NumberDataPoint

func (*Sum) GetIsMonotonic

func (m *Sum) GetIsMonotonic() bool

func (*Sum) Marshal

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

func (*Sum) MarshalTo

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

func (*Sum) MarshalToSizedBuffer

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

func (*Sum) ProtoMessage

func (*Sum) ProtoMessage()

func (*Sum) Reset

func (m *Sum) Reset()

func (*Sum) Size

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

func (*Sum) String

func (m *Sum) String() string

func (*Sum) Unmarshal

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

func (*Sum) XXX_DiscardUnknown

func (m *Sum) XXX_DiscardUnknown()

func (*Sum) XXX_Marshal

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

func (*Sum) XXX_Merge

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

func (*Sum) XXX_Size

func (m *Sum) XXX_Size() int

func (*Sum) XXX_Unmarshal

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

type Summary

type Summary struct {
	DataPoints []*SummaryDataPoint `protobuf:"bytes,1,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"`
}

Summary 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 (*Summary) Descriptor

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

func (*Summary) GetDataPoints

func (m *Summary) GetDataPoints() []*SummaryDataPoint

func (*Summary) Marshal

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

func (*Summary) MarshalTo

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

func (*Summary) MarshalToSizedBuffer

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

func (*Summary) ProtoMessage

func (*Summary) ProtoMessage()

func (*Summary) Reset

func (m *Summary) Reset()

func (*Summary) Size

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

func (*Summary) String

func (m *Summary) String() string

func (*Summary) Unmarshal

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

func (*Summary) XXX_DiscardUnknown

func (m *Summary) XXX_DiscardUnknown()

func (*Summary) XXX_Marshal

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

func (*Summary) XXX_Merge

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

func (*Summary) XXX_Size

func (m *Summary) XXX_Size() int

func (*Summary) XXX_Unmarshal

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

type SummaryDataPoint

type SummaryDataPoint 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 []*SummaryDataPoint_ValueAtQuantile `protobuf:"bytes,6,rep,name=quantile_values,json=quantileValues,proto3" json:"quantile_values,omitempty"`
}

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

func (*SummaryDataPoint) Descriptor

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

func (*SummaryDataPoint) GetCount

func (m *SummaryDataPoint) GetCount() uint64

func (*SummaryDataPoint) GetLabels

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

func (*SummaryDataPoint) GetQuantileValues

func (m *SummaryDataPoint) GetQuantileValues() []*SummaryDataPoint_ValueAtQuantile

func (*SummaryDataPoint) GetStartTimeUnixNano

func (m *SummaryDataPoint) GetStartTimeUnixNano() uint64

func (*SummaryDataPoint) GetSum

func (m *SummaryDataPoint) GetSum() float64

func (*SummaryDataPoint) GetTimeUnixNano

func (m *SummaryDataPoint) GetTimeUnixNano() uint64

func (*SummaryDataPoint) Marshal

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

func (*SummaryDataPoint) MarshalTo

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

func (*SummaryDataPoint) MarshalToSizedBuffer

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

func (*SummaryDataPoint) ProtoMessage

func (*SummaryDataPoint) ProtoMessage()

func (*SummaryDataPoint) Reset

func (m *SummaryDataPoint) Reset()

func (*SummaryDataPoint) Size

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

func (*SummaryDataPoint) String

func (m *SummaryDataPoint) String() string

func (*SummaryDataPoint) Unmarshal

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

func (*SummaryDataPoint) XXX_DiscardUnknown

func (m *SummaryDataPoint) XXX_DiscardUnknown()

func (*SummaryDataPoint) XXX_Marshal

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

func (*SummaryDataPoint) XXX_Merge

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

func (*SummaryDataPoint) XXX_Size

func (m *SummaryDataPoint) XXX_Size() int

func (*SummaryDataPoint) XXX_Unmarshal

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

type SummaryDataPoint_ValueAtQuantile

type SummaryDataPoint_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 (*SummaryDataPoint_ValueAtQuantile) Descriptor

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

func (*SummaryDataPoint_ValueAtQuantile) GetQuantile

func (m *SummaryDataPoint_ValueAtQuantile) GetQuantile() float64

func (*SummaryDataPoint_ValueAtQuantile) GetValue

func (*SummaryDataPoint_ValueAtQuantile) Marshal

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

func (*SummaryDataPoint_ValueAtQuantile) MarshalTo

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

func (*SummaryDataPoint_ValueAtQuantile) MarshalToSizedBuffer

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

func (*SummaryDataPoint_ValueAtQuantile) ProtoMessage

func (*SummaryDataPoint_ValueAtQuantile) ProtoMessage()

func (*SummaryDataPoint_ValueAtQuantile) Reset

func (*SummaryDataPoint_ValueAtQuantile) Size

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

func (*SummaryDataPoint_ValueAtQuantile) String

func (*SummaryDataPoint_ValueAtQuantile) Unmarshal

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

func (*SummaryDataPoint_ValueAtQuantile) XXX_DiscardUnknown

func (m *SummaryDataPoint_ValueAtQuantile) XXX_DiscardUnknown()

func (*SummaryDataPoint_ValueAtQuantile) XXX_Marshal

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

func (*SummaryDataPoint_ValueAtQuantile) XXX_Merge

func (*SummaryDataPoint_ValueAtQuantile) XXX_Size

func (m *SummaryDataPoint_ValueAtQuantile) XXX_Size() int

func (*SummaryDataPoint_ValueAtQuantile) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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