MCPcopy Create free account
hub / github.com/cortexproject/cortex / ExemplarV2

Struct ExemplarV2

pkg/cortexpb/cortex.pb.go:424–438  ·  view source on GitHub ↗

Exemplar is an additional information attached to some series' samples. It is typically used to attach an example trace or request ID associated with the metric changes.

Source from the content-addressed store, hash-verified

422// It is typically used to attach an example trace or request ID associated with
423// the metric changes.
424type ExemplarV2 struct {
425 // labels_refs is an optional list of label name-value pair references, encoded
426 // as indices to the Request.symbols array. This list's len is always
427 // a multiple of 2, and the underlying labels should be sorted lexicographically.
428 // If the exemplar references a trace it should use the `trace_id` label name, as a best practice.
429 LabelsRefs []uint32 `protobuf:"varint,1,rep,packed,name=labels_refs,json=labelsRefs,proto3" json:"labels_refs,omitempty"`
430 // value represents an exact example value. This can be useful when the exemplar
431 // is attached to a histogram, which only gives an estimated value through buckets.
432 Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"`
433 // timestamp represents the timestamp of the exemplar in ms.
434 //
435 // For Go, see github.com/prometheus/prometheus/model/timestamp/timestamp.go
436 // for conversion from/to time.Time to Prometheus timestamp.
437 Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
438}
439
440func (m *ExemplarV2) Reset() { *m = ExemplarV2{} }
441func (*ExemplarV2) ProtoMessage() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected