(n int)
| 50 | } |
| 51 | |
| 52 | func generateProtoLabels(n int) []*controller.PrometheusLabel { |
| 53 | labels := make([]*controller.PrometheusLabel, n) |
| 54 | for i := 0; i < n; i++ { |
| 55 | labels[i] = &controller.PrometheusLabel{ |
| 56 | Name: proto.String(fmt.Sprintf("label_name_%d", i)), |
| 57 | Value: proto.String(fmt.Sprintf("label_value_%d", i)), |
| 58 | Id: proto.Uint32(uint32(i + 1)), |
| 59 | } |
| 60 | } |
| 61 | return labels |
| 62 | } |
| 63 | |
| 64 | func generateProtoMetricNames(n int) []*controller.PrometheusMetricName { |
| 65 | names := make([]*controller.PrometheusMetricName, n) |
no test coverage detected