Documentation
¶
Overview ¶
Package agentmetrics collects metrics from the agent process itself and submits them to cloud monitoring.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthMonitor ¶
type HealthMonitor interface { Register(name string) (*heartbeat.Spec, error) GetStatuses() map[string]bool }
HealthMonitor is anything that can register and monitor entities capable of producing heart beats.
type Parameters ¶
type Parameters struct { BackOffs *cloudmonitoring.BackOffIntervals Config *cfgpb.Configuration HealthMonitor HealthMonitor // contains filtered or unexported fields }
Parameters aggregates the potential configuration values and inputs for Service.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service encapsulates the logic required to collect information on the agent process and to submit the data to cloud monitoring.
func NewService ¶
func NewService(ctx context.Context, params Parameters) (*Service, error)
NewService constructs and initializes a Service instance by using the provided parameters.
Click to show internal directories.
Click to hide internal directories.