Documentation
¶
Overview ¶
Package hostmonitor collects operating-system inventory and metrics for the server monitor plugin and the agent's remote host-monitor mode.
Index ¶
- func Handler(backend Backend) http.Handler
- type Backend
- type Local
- func (l *Local) CPUInfo(ctx context.Context) ([]Row, error)
- func (l *Local) Connections(ctx context.Context) ([]Row, error)
- func (l *Local) DiskIO(ctx context.Context) ([]Row, error)
- func (l *Local) Disks(ctx context.Context) ([]Row, error)
- func (l *Local) Metrics(ctx context.Context) (map[string]any, error)
- func (l *Local) Networks(ctx context.Context) ([]Row, error)
- func (l *Local) Overview(ctx context.Context) (map[string]any, error)
- func (l *Local) Processes(ctx context.Context) ([]Row, error)
- func (l *Local) Sensors(ctx context.Context) ([]Row, error)
- func (l *Local) Services(ctx context.Context) ([]Row, error)
- func (l *Local) Users(ctx context.Context) ([]Row, error)
- type Options
- type Remote
- func (r *Remote) CPUInfo(ctx context.Context) ([]Row, error)
- func (r *Remote) Connections(ctx context.Context) ([]Row, error)
- func (r *Remote) DiskIO(ctx context.Context) ([]Row, error)
- func (r *Remote) Disks(ctx context.Context) ([]Row, error)
- func (r *Remote) Metrics(ctx context.Context) (map[string]any, error)
- func (r *Remote) Networks(ctx context.Context) ([]Row, error)
- func (r *Remote) Overview(ctx context.Context) (map[string]any, error)
- func (r *Remote) Processes(ctx context.Context) ([]Row, error)
- func (r *Remote) Sensors(ctx context.Context) ([]Row, error)
- func (r *Remote) Services(ctx context.Context) ([]Row, error)
- func (r *Remote) Users(ctx context.Context) ([]Row, error)
- type Row
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend interface {
Overview(context.Context) (map[string]any, error)
Metrics(context.Context) (map[string]any, error)
Processes(context.Context) ([]Row, error)
Services(context.Context) ([]Row, error)
Disks(context.Context) ([]Row, error)
DiskIO(context.Context) ([]Row, error)
Networks(context.Context) ([]Row, error)
Connections(context.Context) ([]Row, error)
Users(context.Context) ([]Row, error)
Sensors(context.Context) ([]Row, error)
CPUInfo(context.Context) ([]Row, error)
}
Click to show internal directories.
Click to hide internal directories.