Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = promlog.New(&promlog.Config{})
Logger - final prometheus logger
Functions ¶
This section is empty.
Types ¶
type CollectOpts ¶
type CollectOpts struct { PreventFlood bool SkipApcupsdParsing bool Signal model.Signal OnComplete chan bool }
CollectOpts ..
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector ..
func (*Collector) GetLastOutput ¶
GetLastOutput method
type CollectorOtps ¶
type CollectorOtps struct { ApcupsdAddr string ApcaccessPath string ApcaccessFloodLimit time.Duration CollectInterval time.Duration ApcupsdStartSkip time.Duration Factory *Factory DefaultState *model.State }
CollectorOtps ..
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory of default metrics
func (*Factory) GetMetrics ¶
GetMetrics returns metrics with actual labels
func (*Factory) SetConstLabels ¶
func (f *Factory) SetConstLabels(labels prometheus.Labels)
SetConstLabels method
type Metric ¶
type Metric struct { Collector prometheus.Collector HandlerFunc func(m *Metric, model *model.Model) ValFunc func(m *Metric, model *model.Model) float64 DefaultValue float64 IsPermanent bool // contains filtered or unexported fields }
Metric struct
func (*Metric) UpdateCollector ¶
UpdateCollector method
Click to show internal directories.
Click to hide internal directories.