Documentation ¶
Overview ¶
Package hostmetrics provides Google Cloud VM metric information for the SAP host agent to collect.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateXML ¶
func GenerateXML(metricsCollection *pb.MetricsCollection) string
GenerateXML creates an XML string that is consumable by the SAP host agent for a MetricsCollection.
func StartSAPHostAgentProvider ¶
func StartSAPHostAgentProvider(ctx context.Context, params Parameters) bool
StartSAPHostAgentProvider will startup the http server and collect metrics for the sap host agent if enabled in the configuration. Returns true if the collection goroutine is started, and false otherwise.
Types ¶
type Parameters ¶
type Parameters struct { Config *cpb.Configuration InstanceInfoReader instanceinfo.Reader CloudMetricReader cloudmetricreader.CloudMetricReader AgentTime agenttime.AgentTime HeartbeatSpec *heartbeat.Spec }
Parameters holds the parameters for all of the Collect* function calls.
Directories ¶
Path | Synopsis |
---|---|
Package agenttime maintains time values that are necessary for metrics collection.
|
Package agenttime maintains time values that are necessary for metrics collection. |
Package cloudmetricreader provides functionality for interfacing with the cloud monitoring API.
|
Package cloudmetricreader provides functionality for interfacing with the cloud monitoring API. |
Package configurationmetricreader contains utlity functions that build collections of protocol buffers that store various configuration metrics
|
Package configurationmetricreader contains utlity functions that build collections of protocol buffers that store various configuration metrics |
Package cpustatsreader provides functionality for collecting OS cpu metrics.
|
Package cpustatsreader provides functionality for collecting OS cpu metrics. |
Package diskstatsreader provides functionality for collecting OS disk metrics.
|
Package diskstatsreader provides functionality for collecting OS disk metrics. |
Package memorymetricreader provides functionality for collecting OS memory metrics
|
Package memorymetricreader provides functionality for collecting OS memory metrics |
Package metricsformatter provides functionality for manipulating data to be used for metrics collection.
|
Package metricsformatter provides functionality for manipulating data to be used for metrics collection. |
Package osmetricreader contains utlity functions that build collections of protocol buffers that store various VM metrics
|
Package osmetricreader contains utlity functions that build collections of protocol buffers that store various VM metrics |
Click to show internal directories.
Click to hide internal directories.