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

Function getValues

integration/e2e/metrics.go:34–40  ·  view source on GitHub ↗
(metrics []*io_prometheus_client.Metric, opts MetricsOptions)

Source from the content-addressed store, hash-verified

32}
33
34func getValues(metrics []*io_prometheus_client.Metric, opts MetricsOptions) []float64 {
35 values := make([]float64, 0, len(metrics))
36 for _, m := range metrics {
37 values = append(values, opts.GetValue(m))
38 }
39 return values
40}
41
42func filterMetrics(metrics []*io_prometheus_client.Metric, opts MetricsOptions) []*io_prometheus_client.Metric {
43 // If no label matcher is configured, then no filtering should be done.

Callers 1

SumMetricsMethod · 0.85

Calls 1

GetValueMethod · 0.45

Tested by

no test coverage detected