Documentation ¶
Overview ¶
Package computeresources provides code for collection of compute resources metrics like CPU and memory per process for various Hana, Netweaver and SAP Control Processes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HanaInstanceProperties ¶
type HanaInstanceProperties struct { Config *cnfpb.Configuration Client cloudmonitoring.TimeSeriesCreator Executor commandlineexecutor.Execute SAPInstance *sapb.SAPInstance ProcessListParams commandlineexecutor.Params NewProcHelper newProcessWithContextHelper }
HanaInstanceProperties have the required context for collecting metrics for cpu memory per process for HANA, Netweaver and SAP Control. It also implements the InstanceProperiesInterface for abstraction as defined in the computreresources.go file.
func (*HanaInstanceProperties) Collect ¶
func (p *HanaInstanceProperties) Collect(ctx context.Context) []*mrpb.TimeSeries
Collect SAP additional metrics like per process CPU and per process memory utilization of SAP HANA Processes.
type NetweaverInstanceProperties ¶
type NetweaverInstanceProperties struct { Config *cnfpb.Configuration Client cloudmonitoring.TimeSeriesCreator Executor commandlineexecutor.Execute SAPInstance *sapb.SAPInstance NewProcHelper newProcessWithContextHelper SAPControlProcessParams commandlineexecutor.Params ABAPProcessParams commandlineexecutor.Params }
NetweaverInstanceProperties have the required context for collecting metrics for cpu and memory per process for Netweaver.
func (*NetweaverInstanceProperties) Collect ¶
func (p *NetweaverInstanceProperties) Collect(ctx context.Context) []*mrpb.TimeSeries
Collect SAP additional metrics like per process CPU and per process memory utilization of SAP Netweaver processes.
type ProcessInfo ¶
ProcessInfo holds the relevant info for processes, including its name and pid.
type SAPControlProcInstanceProperties ¶
type SAPControlProcInstanceProperties struct { Config *cnfpb.Configuration Client cloudmonitoring.TimeSeriesCreator Executor commandlineexecutor.Execute NewProcHelper newProcessWithContextHelper }
SAPControlProcInstanceProperties have the required context for collecting metrics for cpu and memory per process for SAPControl processes.
func (*SAPControlProcInstanceProperties) Collect ¶
func (p *SAPControlProcInstanceProperties) Collect(ctx context.Context) []*mrpb.TimeSeries
Collect SAP additional metrics like per process CPU and per process memory utilization of SAP Control Processes.