Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoData = errors.New("collector returned no data")
Functions ¶
func IsNoDataError ¶
Types ¶
type Collector ¶
type Collector interface {
Update(ch chan<- prometheus.Metric) error
}
func NewCPUCollector ¶
func NewFilesystemCollector ¶
NewFilesystemCollector returns a new Collector exposing filesystems stats.
func NewMeminfoCollector ¶
NewMeminfoCollector returns a new Collector exposing memory stats.
func NewNetDevCollector ¶
NewNetDevCollector returns a new Collector exposing network device stats.
type Instance ¶
type Instance struct { R *prometheus.Registry C *NodeCollector // contains filtered or unexported fields }
func GetInstance ¶
func GetInstance() *Instance
func (*Instance) GetInstance ¶
func (*Instance) GetMetrics ¶
func (*Instance) SetInstance ¶
type NodeCollector ¶
func NewNodeCollector ¶
func NewNodeCollector() *NodeCollector
func (NodeCollector) Collect ¶
func (n NodeCollector) Collect(ch chan<- prometheus.Metric)
func (NodeCollector) Describe ¶
func (n NodeCollector) Describe(ch chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.