MCPcopy Create free account
hub / github.com/prometheus/prometheus / samplesReadPerStepPoints

Method samplesReadPerStepPoints

util/stats/query_stats.go:208–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206}
207
208func (qs *QuerySamples) samplesReadPerStepPoints() []stepStat {
209 if !qs.EnablePerStepStats || qs.SamplesReadPerStep == nil {
210 return nil
211 }
212
213 ts := make([]stepStat, len(qs.SamplesReadPerStep))
214 for i, c := range qs.SamplesReadPerStep {
215 ts[i] = stepStat{T: qs.StartTimestamp + int64(i)*qs.Interval, V: c}
216 }
217 return ts
218}
219
220// SpanTimer unifies tracing and timing, to reduce repetition.
221type SpanTimer struct {

Callers 2

SamplesReadPerStepMapMethod · 0.95
NewQueryStatsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected