Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MetricsToDashCmd = &cobra.Command{ Use: "metrics-to-dash", Aliases: []string{"metricstodash", "metricsToDash"}, Short: "Create a dashboard from an Openmetrics / Prometheus response.", Long: usage, RunE: func(cmd *cobra.Command, args []string) error { do := dashboard.DashboardOptions{ File: inputMetricsToDashFile, Title: inputMetricsToDashTitle, Prefix: inputMetricsToDashPrefix, Description: inputMetricsToDashDesc, WidgetHeight: inputMetricsToDashHeight, WidgetWidth: inputMetricsToDashWidth, TemplateVars: inputMetricsToDashTemplateVars, TemplateVarDefaults: inputMetricsToDashTemplateVarDefaults, StripPrefixes: inputMetricsToDashStripPrefixes, Pretty: inputMetricsToDashPretty, ShowHelp: inputMetricsToDashShowHelp, } data, err := dashboard.ConvertMetricsToDashboard(&do) if err != nil { return err } fmt.Println(string(data)) return nil }, }
MetricsToDashCmd represents the metricsToDash command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.