(metrics []*io_prometheus_client.Metric, opts MetricsOptions)
| 32 | } |
| 33 | |
| 34 | func 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 | |
| 42 | func 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. |