Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Defaults = func(o *Options) error { o.MetricsURL = "http://127.0.0.1:8888/metrics" o.Start = time.Now() o.Writer = os.Stderr o.RefreshPeriod = time.Second * 5 return nil }
Defaults are the default UI options. This option will be automatically prepended to any options you pass to the NewUI constructor.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option is the UI option type.
func MetricsURL ¶
MetricsURL configures the URL the Prometheus /metrics endpoint is at Defaults to http://127.0.0.1:8888/metrics.
func RefreshPeriod ¶
RefreshPeriod configures the period beiween UI refeshes. Defaults to 5s.
Click to show internal directories.
Click to hide internal directories.