diff --git a/test/instrumentation/documentation/main.go b/test/instrumentation/documentation/main.go
index c8a2b37c6d9..24970e2edd3 100755
--- a/test/instrumentation/documentation/main.go
+++ b/test/instrumentation/documentation/main.go
@@ -60,85 +60,58 @@ components using an HTTP scrape, and fetch the current metrics data in Prometheu
Stable metrics observe strict API contracts and no labels can be added or removed from stable metrics during their lifetime.
-
+{{- range $index, $metric := .StableMetrics -}}
+
+
{{with $metric}}{{.BuildFQName}}{{- end -}}
+
{{- $metric.Help -}}
+
+
{{- $metric.StabilityLevel -}}
+
{{- $metric.Type -}}
+ {{if $metric.Labels }}
{{range $label := $metric.Labels}}{{- $label -}}{{- end -}}
{{- end -}}
+ {{if $metric.ConstLabels }}
{{range $key, $value := $metric.ConstLabels}}{{$key}}:{{$value}}{{- end -}}
{{- end -}}
+ {{if $metric.DeprecatedVersion }}
{{- $metric.DeprecatedVersion -}}
{{- end -}}
+
+
{{end}}
+
### List of Beta Kubernetes Metrics
Beta metrics observe a looser API contract than its stable counterparts. No labels can be removed from beta metrics during their lifetime, however, labels can be added while the metric is in the beta stage. This offers the assurance that beta metrics will honor existing dashboards and alerts, while allowing for amendments in the future.
-
-
-
-
Name
-
Stability Level
-
Type
-
Help
-
Labels
-
Const Labels
-
Deprecated Version
-
-
-
-{{range $index, $metric := .BetaMetrics}}
-
{{with $metric}}{{.BuildFQName}}{{end}}
-
{{$metric.StabilityLevel}}
-
{{$metric.Type}}
-
{{$metric.Help}}
-{{if not $metric.Labels }}
{{else }}
{{range $label := $metric.Labels}}
{{$label}}
{{end}}
{{end}}
-{{if not $metric.ConstLabels }}
{{else }}
{{range $key, $value := $metric.ConstLabels}}
{{$key}}:{{$value}}
{{end}}
{{end}}
-{{if not $metric.DeprecatedVersion }}
{{else }}
{{$metric.DeprecatedVersion}}
{{end}}
{{end}}
-
-
+
+{{- range $index, $metric := .BetaMetrics -}}
+
+
{{with $metric}}{{.BuildFQName}}{{- end -}}
+
{{- $metric.Help -}}
+
+
{{- $metric.StabilityLevel -}}
+
{{- $metric.Type -}}
+ {{if $metric.Labels }}
{{range $label := $metric.Labels}}{{- $label -}}{{- end -}}
{{- end -}}
+ {{if $metric.ConstLabels }}
{{range $key, $value := $metric.ConstLabels}}{{$key}}:{{$value}}{{- end -}}
{{- end -}}
+ {{if $metric.DeprecatedVersion }}
{{- $metric.DeprecatedVersion -}}
{{- end -}}
+
+
{{end}}
+
### List of Alpha Kubernetes Metrics
Alpha metrics do not have any API guarantees. These metrics must be used at your own risk, subsequent versions of Kubernetes may remove these metrics altogether, or mutate the API in such a way that breaks existing dashboards and alerts.
-
-
-
-
Name
-
Stability Level
-
Type
-
Help
-
Labels
-
Const Labels
-
Deprecated Version
-
-
-
-{{range $index, $metric := .AlphaMetrics}}
-
{{with $metric}}{{.BuildFQName}}{{end}}
-
{{$metric.StabilityLevel}}
-
{{$metric.Type}}
-
{{$metric.Help}}
-{{if not $metric.Labels }}
{{else }}
{{range $label := $metric.Labels}}
{{$label}}
{{end}}
{{end}}
-{{if not $metric.ConstLabels }}
{{else }}
{{range $key, $value := $metric.ConstLabels}}
{{$key}}:{{$value}}
{{end}}
{{end}}
-{{if not $metric.DeprecatedVersion }}
{{else }}
{{$metric.DeprecatedVersion}}
{{end}}
{{end}}
-
-
+
+{{- range $index, $metric := .AlphaMetrics -}}
+
+
{{with $metric}}{{.BuildFQName}}{{- end -}}
+
{{- $metric.Help -}}
+
+
{{- $metric.StabilityLevel -}}
+
{{- $metric.Type -}}
+ {{if $metric.Labels }}
{{range $label := $metric.Labels}}{{- $label -}}{{- end -}}
{{- end -}}
+ {{if $metric.ConstLabels }}
{{range $key, $value := $metric.ConstLabels}}{{$key}}:{{$value}}{{- end -}}