Documentation ¶
Overview ¶
Package procfs builtin linux-specific collector for /proc filesystem (replaces old nad shell plugins)
Index ¶
- Constants
- func New(ctx context.Context) ([]collector.Collector, error)
- func NewCPUCollector(cfgBaseName, procFSPath string) (collector.Collector, error)
- func NewDiskCollector(cfgBaseName, procFSPath string) (collector.Collector, error)
- func NewLoadCollector(cfgBaseName, procFSPath string) (collector.Collector, error)
- func NewNetIFCollector(cfgBaseName, procFSPath string) (collector.Collector, error)
- func NewNetProtoCollector(cfgBaseName, procFSPath string) (collector.Collector, error)
- func NewNetSocketCollector(cfgBaseName, procFSPath string) (collector.Collector, error)
- func NewVMCollector(cfgBaseName, procFSPath string) (collector.Collector, error)
- type CPU
- type Disk
- type Load
- type NetIF
- type NetProto
- type NetSocket
- type VM
Constants ¶
const ( CollectorPrefix = "procfs/" PackageName = "builtins.linux.procfs" NameCPU = "cpu" NameDisk = "disk" NameNetInterface = "if" NameNetProto = "proto" NameNetSocket = "socket" NameLoad = "load" NameVM = "vm" )
Variables ¶
This section is empty.
Functions ¶
func NewCPUCollector ¶
NewCPUCollector creates new procfs cpu collector
func NewDiskCollector ¶ added in v1.0.0
NewDiskCollector creates new procfs disk collector
func NewLoadCollector ¶ added in v1.0.0
NewLoadCollector creates new procfs load collector
func NewNetIFCollector ¶ added in v1.0.0
NewNetIFCollector creates new procfs if collector
func NewNetProtoCollector ¶ added in v1.0.0
NewNetProtoCollector creates new procfs network protocol collector
func NewNetSocketCollector ¶ added in v1.0.0
NewNetSocketCollector creates new procfs if collector
Types ¶
type CPU ¶
type CPU struct {
// contains filtered or unexported fields
}
CPU metrics from the Linux ProcFS
func (*CPU) Inventory ¶
func (c *CPU) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type Disk ¶ added in v1.0.0
type Disk struct {
// contains filtered or unexported fields
}
Disk metrics from the Linux ProcFS
func (*Disk) Inventory ¶ added in v1.0.0
func (c *Disk) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type Load ¶ added in v1.0.0
type Load struct {
// contains filtered or unexported fields
}
Load metrics from the Linux ProcFS (actually from unix.Sysinfo call)
func (*Load) Inventory ¶ added in v1.0.0
func (c *Load) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type NetIF ¶ added in v1.0.0
type NetIF struct {
// contains filtered or unexported fields
}
NetIF metrics from the Linux ProcFS
func (*NetIF) Inventory ¶ added in v1.0.0
func (c *NetIF) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type NetProto ¶ added in v1.0.0
type NetProto struct {
// contains filtered or unexported fields
}
NetProto metrics from the Linux ProcFS
func (*NetProto) ID ¶ added in v1.0.0
func (c *NetProto) ID() string
ID returns the id of the instance
func (*NetProto) Inventory ¶ added in v1.0.0
func (c *NetProto) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type NetSocket ¶ added in v1.0.0
type NetSocket struct {
// contains filtered or unexported fields
}
NetSocket metrics from the Linux ProcFS
func (*NetSocket) ID ¶ added in v1.0.0
func (c *NetSocket) ID() string
ID returns the id of the instance
func (*NetSocket) Inventory ¶ added in v1.0.0
func (c *NetSocket) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type VM ¶ added in v0.8.0
type VM struct {
// contains filtered or unexported fields
}
VM metrics from the Linux ProcFS
func (*VM) Inventory ¶ added in v0.8.0
func (c *VM) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint