Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNoData = errors.New("Collector returned no data")
ErrNoData indicates the collector found no data to collect, but had no other error.
Functions ¶
func IsNoDataError ¶
IsNoDataError method is to determine whether the Collector has no data to return
Types ¶
type CSICollector ¶
CSICollector implements the prometheus.Collector interface.
func (CSICollector) Collect ¶
func (csi CSICollector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface.
func (CSICollector) Describe ¶
func (csi CSICollector) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface.
type Collector ¶
type Collector interface { // Get new metrics and expose them via prometheus registry. Update(ch chan<- prometheus.Metric) error }
Collector is the interface a collector has to implement.
func NewDiskStatCollector ¶
NewDiskStatCollector returns a new Collector exposing disk stats.
func NewPfsRawBlockStatCollector ¶ added in v1.1.1
NewPfsRawBlockStatCollector returns a new Collector exposing stats.
type ExecResult ¶ added in v1.1.1
type ExecResult struct { ExitCode int // contains filtered or unexported fields }
ExecResult represents a result returned from Exec()
type Handler ¶
type Handler struct { }
Handler is a package of promHttp,metric entry
func NewMetricHandler ¶
NewMetricHandler method returns a promHttp object