computeresources

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

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

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

Collect SAP additional metrics like per process CPU and per process memory utilization of SAP Netweaver processes.

type ProcessInfo

type ProcessInfo struct {
	Name string
	PID  string
}

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

Collect SAP additional metrics like per process CPU and per process memory utilization of SAP Control Processes.

Jump to

Keyboard shortcuts

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