Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metric ¶
type Metric struct { prometheus.Collector Updater // contains filtered or unexported fields }
func NewMetric ¶
func NewMetric(opts ...OptionFunc) (*Metric, error)
type OptionFunc ¶
func WithClient ¶
func WithClient(client *console.Client) OptionFunc
func WithHelp ¶
func WithHelp(help string) OptionFunc
func WithName ¶
func WithName(name string) OptionFunc
func WithPrune ¶ added in v0.0.11
func WithPrune(prune int) OptionFunc
func WithQuery ¶
func WithQuery(query string) OptionFunc
func WithRegion ¶ added in v0.0.7
func WithRegion(region string) OptionFunc
func WithService ¶ added in v0.0.6
func WithService(service string) OptionFunc
type Updater ¶
type Updater interface {
WithLabelValues(lvs ...string) prometheus.Gauge
}
Click to show internal directories.
Click to hide internal directories.