mirror of https://github.com/k3s-io/k3s
Make MetricsForE2E public
parent
5b43a12775
commit
e704e6c0bc
|
@ -157,7 +157,7 @@ func (f *Framework) afterEach() {
|
|||
if err != nil {
|
||||
Logf("MetricsGrabber failed grab metrics. Skipping metrics gathering.")
|
||||
} else {
|
||||
summaries = append(summaries, (*metricsForE2E)(&received))
|
||||
summaries = append(summaries, (*MetricsForE2E)(&received))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,9 +47,9 @@ const (
|
|||
apiCallLatencyLargeThreshold time.Duration = 1 * time.Second
|
||||
)
|
||||
|
||||
type metricsForE2E metrics.MetricsCollection
|
||||
type MetricsForE2E metrics.MetricsCollection
|
||||
|
||||
func (m *metricsForE2E) PrintHumanReadable() string {
|
||||
func (m *MetricsForE2E) PrintHumanReadable() string {
|
||||
buf := bytes.Buffer{}
|
||||
for _, interestingMetric := range InterestingApiServerMetrics {
|
||||
buf.WriteString(fmt.Sprintf("For %v:\n", interestingMetric))
|
||||
|
@ -69,7 +69,7 @@ func (m *metricsForE2E) PrintHumanReadable() string {
|
|||
return buf.String()
|
||||
}
|
||||
|
||||
func (m *metricsForE2E) PrintJSON() string {
|
||||
func (m *MetricsForE2E) PrintJSON() string {
|
||||
return prettyPrintJSON(*m)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue