{{ $versionFromPath := index (split $.Page.File.Path "/") 1 }} {{ $isNextRelease := eq $versionFromPath "next-release" }} {{ $version := cond ($isNextRelease) site.Params.latest $versionFromPath }} {{ $data := index site.Data.cli $version }} {{ $config := index (index site.Data.cli $versionFromPath) "config" }} {{ if $isNextRelease }}

NOTE: This page is generated for version {{ $version }}.

{{ end }}

The CLI flags for the following binaries are documented below:

{{ range $config.tools }} {{ $tool := . }} {{ $cli := index $data $tool }} {{ $storage_types := index (index $config $tool) "storage" }} {{ $sampling_types := index (index $config $tool) "sampling" }} {{ $metrics_storage_types := index (index $config $tool) "metrics-storage" }}

{{ $tool }}

{{ $cli.description }}

{{ if gt (len $storage_types) 0 }}

{{ $tool }} can be used with these storage backends:

{{ if $sampling_types }}

{{ $tool }} can be used with these sampling types:

{{ end }} {{ if $metrics_storage_types }}

(Experimental) {{ $tool }} can be used with these metrics storage types:

{{ end }} {{ range $storage_types }} {{ $storage := . }} {{ $file := printf "%s-%s" $tool $storage }} {{ $cli := index $data $file }}

{{ $tool }} with {{ $storage }} storage

{{ partial "options-table.html" $cli.options }} {{ end }} {{ range $sampling_types }} {{ $sampling := . }} {{ $file := printf "%s-%s" $tool $sampling }} {{ $cli := index $data $file }}

{{ $tool }} with {{ $sampling }} sampling

{{ partial "options-table.html" $cli.options }} {{ end }} {{ range $metrics_storage_types }} {{ $metrics_storage := . }} {{ $file := printf "%s-%s" $tool $metrics_storage }} {{ $cli := index $data $file }}

{{ $tool }} with {{ $metrics_storage }} metrics storage

{{ partial "options-table.html" $cli.options }} {{ end }} {{ else }} {{ partial "options-table.html" $cli.options }} {{ end }} {{ end }}