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

Function exemplarToProm

pkg/util/push/appender.go:85–91  ·  view source on GitHub ↗
(e exemplar.Exemplar)

Source from the content-addressed store, hash-verified

83}
84
85func exemplarToProm(e exemplar.Exemplar) prompb.Exemplar {
86 return prompb.Exemplar{
87 Labels: prompb.FromLabels(e.Labels, nil),
88 Value: e.Value,
89 Timestamp: e.Ts,
90 }
91}
92
93// TimeSeries returns the accumulated time series in prompb form.
94func (c *collectingAppender) TimeSeries() []prompb.TimeSeries {

Callers 2

AppendSampleMethod · 0.85
AppendHistogramMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected