Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SystemCollector ¶
type SystemCollector struct {
// contains filtered or unexported fields
}
SystemCollector gathers system resource usage (CPU, memory, disk). Linux only.
func NewSystemCollector ¶
func NewSystemCollector(ctx context.Context, cfg *config.Config) *SystemCollector
func (*SystemCollector) Collect ¶
func (c *SystemCollector) Collect(ch chan<- prometheus.Metric)
func (*SystemCollector) Describe ¶
func (c *SystemCollector) Describe(ch chan<- *prometheus.Desc)
func (*SystemCollector) Shutdown ¶
func (c *SystemCollector) Shutdown() error
Click to show internal directories.
Click to hide internal directories.