servermonitor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package servermonitor implements a host monitoring plugin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CPUInfo

func CPUInfo(rc *plugin.RequestContext) (any, error)

func Connect

func Connect(ctx context.Context, cfg plugin.ConnectConfig) (plugin.Session, error)

func Connections

func Connections(rc *plugin.RequestContext) (any, error)

func DiskIO

func DiskIO(rc *plugin.RequestContext) (any, error)

func Disks

func Disks(rc *plugin.RequestContext) (any, error)

func Metrics

func Metrics(rc *plugin.RequestContext, client plugin.ClientStream) error

func Networks

func Networks(rc *plugin.RequestContext) (any, error)

func Overview

func Overview(rc *plugin.RequestContext) (any, error)

func Processes

func Processes(rc *plugin.RequestContext) (any, error)

func Routes

func Routes() []plugin.Route

func Sensors

func Sensors(rc *plugin.RequestContext) (any, error)

func Services

func Services(rc *plugin.RequestContext) (any, error)

func Users

func Users(rc *plugin.RequestContext) (any, error)

Types

type Plugin

type Plugin struct{}

func New

func New() *Plugin

func (*Plugin) Connect

func (p *Plugin) Connect(ctx context.Context, cfg plugin.ConnectConfig) (plugin.Session, error)

func (*Plugin) Manifest

func (p *Plugin) Manifest() plugin.Manifest

func (*Plugin) Routes

func (p *Plugin) Routes() []plugin.Route

type Session

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

func (*Session) Close

func (s *Session) Close() error

func (*Session) HealthCheck

func (s *Session) HealthCheck(ctx context.Context) error

func (*Session) OpenChannel

Jump to

Keyboard shortcuts

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