Loading search index…
No recent searches
No results for "Query here"
import "github.com/perses/perses/go-sdk/panel/gauge" var options []gauge.Option gauge.Chart(options...)
Need a list of options.
import "github.com/perses/perses/go-sdk/common" import "github.com/perses/perses/go-sdk/panel/gauge" gauge.Calculation(common.Last)
Define the chart calculation.
import "github.com/perses/perses/go-sdk/common" import "github.com/perses/perses/go-sdk/panel/gauge" gauge.Format(common.Format{...})
Define the chart format.
import "github.com/perses/perses/go-sdk/common" import "github.com/perses/perses/go-sdk/panel/gauge" gauge.Thresholds(common.Thresholds{...})
Define chart thresholds.
import "github.com/perses/perses/go-sdk/panel/gauge" gauge.Max(20)
Define the chart max value.
package main import ( "github.com/perses/perses/go-sdk/common" "github.com/perses/perses/go-sdk/dashboard" panelgroup "github.com/perses/perses/go-sdk/panel-group" "github.com/perses/perses/go-sdk/panel/gauge" ) func main() { dashboard.New("Example Dashboard", dashboard.AddPanelGroup("Resource usage", panelgroup.AddPanel("Container memory", gauge.Chart( gauge.Calculation(common.LastCalculation), gauge.Format(common.Format{ Unit: common.BytesUnit, }), gauge.Max(20), ), ), ), ) }