collectors

package
v2.0.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2021 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SystemInfoFields = [...]string{
	"CPUUtilization",
	"PhysicalMemory",
	"MemoryUtilization",
	"PhysicalFlash",
	"AvailableFlash",
}
View Source
var TrafficCollectorFields = [...]string{
	"TodayConnectionTime",
	"TodayDownload",
	"TodayUpload",
	"YesterdayConnectionTime",
	"YesterdayDownload",
	"YesterdayUpload",
	"WeekConnectionTime",
	"WeekDownload",
	"WeekDownloadAverage",
	"WeekUpload",
	"WeekUploadAverage",
	"MonthConnectionTime",
	"MonthDownload",
	"MonthDownloadAverage",
	"MonthUpload",
	"MonthUploadAverage",
	"LastMonthConnectionTime",
	"LastMonthDownload",
	"LastMonthDownloadAverage",
	"LastMonthUpload",
	"LastMonthUploadAverage",
}

Functions

This section is empty.

Types

type ClientCollector

type ClientCollector struct {
	// contains filtered or unexported fields
}

func NewClientCollector

func NewClientCollector(namespace string, client *netgear_client.NetgearClient) *ClientCollector

func (*ClientCollector) Collect

func (c *ClientCollector) Collect(ch chan<- prometheus.Metric)

func (*ClientCollector) Describe

func (c *ClientCollector) Describe(ch chan<- *prometheus.Desc)

type SystemInfo

type SystemInfo struct {
	// contains filtered or unexported fields
}

func NewSystemInfoCollector

func NewSystemInfoCollector(namespace string, client *netgear_client.NetgearClient) *SystemInfo

func (*SystemInfo) Collect

func (c *SystemInfo) Collect(ch chan<- prometheus.Metric)

func (*SystemInfo) Describe

func (c *SystemInfo) Describe(ch chan<- *prometheus.Desc)

type TrafficCollector

type TrafficCollector struct {
	// contains filtered or unexported fields
}

func NewTrafficCollector

func NewTrafficCollector(namespace string, client *netgear_client.NetgearClient) *TrafficCollector

func (*TrafficCollector) Collect

func (c *TrafficCollector) Collect(ch chan<- prometheus.Metric)

func (*TrafficCollector) Describe

func (c *TrafficCollector) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL