diff --git a/cmd/mdatagen/documentation.tmpl b/cmd/mdatagen/documentation.tmpl index 97997d9f7c55..8f48ee918de5 100644 --- a/cmd/mdatagen/documentation.tmpl +++ b/cmd/mdatagen/documentation.tmpl @@ -9,7 +9,12 @@ These are the metrics available for this scraper. | Name | Description | Unit | Type | Attributes | | ---- | ----------- | ---- | ---- | ---------- | {{- range $metricName, $metricInfo := .Metrics }} +{{- if $metricInfo.ExtendedDocumentation }} +| {{ $metricName }} | {{ $metricInfo.Description }} {{ $metricInfo.ExtendedDocumentation }} | {{ $metricInfo.Unit }} | {{ $metricInfo.Data.Type }} |