apm

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MPL-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APM

type APM interface {

	// Embed the base.Base ensuring that APM plugins implement this
	// interface.
	base.Base

	// Query is used to ask the remote APM for timestamped metrics based on the
	// passed query and time range.
	Query(query string, timeRange sdk.TimeRange) (sdk.TimestampedMetrics, error)

	// QueryMultiple is used exclusively by Dynamic Application Sizing in order
	// to gather the metrics desired by the feature.
	QueryMultiple(query string, timeRange sdk.TimeRange) ([]sdk.TimestampedMetrics, error)
}

APM is the interface that all APM plugins are required to implement and details the functions that are used to provide the Autoscaler with metrics to make scaling decisions on.

type PluginAPM added in v0.3.0

type PluginAPM struct {

	// Embedded so we disable support for net/rpc based plugins.
	plugin.NetRPCUnsupportedPlugin

	// Impl is the APM interface implementation that the plugin serves.
	Impl APM
}

PluginAPM is the APM implementation of the go-plugin GRPCPlugin interface.

func (*PluginAPM) GRPCClient added in v0.3.0

func (p *PluginAPM) GRPCClient(ctx context.Context, _ *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

GRPCClient is the APM implementation of the go-plugin GRPCPlugin.GRPCClient interface function.

func (*PluginAPM) GRPCServer added in v0.3.0

func (p *PluginAPM) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error

GRPCServer is the APM implementation of the go-plugin GRPCPlugin.GRPCServer interface function.

Directories

Path Synopsis
proto
v1

Jump to

Keyboard shortcuts

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