metrics

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LBProvision is the OCI metric suffix for LB provision
	LBProvision = "LB_PROVISION"
	// LBUpdate is the OCI metric suffix for LB update
	LBUpdate = "LB_UPDATE"
	// LBDelete is the OCI metric suffix for LB delete
	LBDelete = "LB_DELETE"

	// NLBProvision is the OCI metric suffix for NLB provision
	NLBProvision = "NLB_PROVISION"
	// NLBUpdate is the OCI metric suffix for NLB update
	NLBUpdate = "NLB_UPDATE"
	// NLBDelete is the OCI metric suffix for NLB delete
	NLBDelete = "NLB_DELETE"

	// NSGProvision is the OCI metric suffix for NLB provision
	NSGProvision = "NSG_PROVISION"
	// NSGUpdate is the OCI metric suffix for NLB update
	NSGUpdate = "NSG_UPDATE"
	// NSGDelete is the OCI metric suffix for NLB delete
	NSGDelete = "NSG_DELETE"

	// PVProvision is the OCI metric suffix for PV provision
	PVProvision = "PV_PROVISION"
	// PVAttach is the OCI metric suffix for PV attach
	PVAttach = "PV_ATTACH"
	// PVDetach is the OCI metric suffix for PV detach
	PVDetach = "PV_DETACH"
	// PVDelete is the OCI metric suffix for PV delete
	PVDelete = "PV_DELETE"
	// PVExpand is the OCI metric suffix for PV Expand
	PVExpand = "PV_EXPAND"
	// PVClone is the OCI metric for PV Clone
	PVClone = "PV_CLONE"

	// FSSProvision is the OCI metric suffix for FSS provision
	FSSProvision = "FSS_PROVISION"
	// FSSDelete is the OCI metric suffix for FSS delete
	FSSDelete = "FSS_DELETE"

	// MTProvision is the OCI metric suffix for Mount Target provision
	MTProvision = "MT_PROVISION"
	// MTDelete is the OCI metric suffix for Mount Target delete
	MTDelete = "MT_DELETE"

	// ExportProvision is the OCI metric suffix for Export provision
	ExportProvision = "EXP_PROVISION"
	// ExportDelete is the OCI metric suffix for Export delete
	ExportDelete = "EXP_DELETE"

	// BlockSnapshotProvision is the OCI metric suffix for Block Volume Snapshot Provision
	BlockSnapshotProvision = "BSNAP_PROVISION"
	// BlockSnapshotDelete is the OCI metric suffix for Block Volume Snapshot Delete
	BlockSnapshotDelete = "BSNAP_DELETE"
	// BlockSnapshotRestore is the OCI metric suffix for Block Volume Snapshot Restore
	BlockSnapshotRestore = "BSNAP_RESTORE"

	// FssAllProvision is the OCI metric suffix for FSS end to end provision
	FssAllProvision = "FSS_ALL_PROVISION"

	// FssAllDelete is the OCI metric suffix for FSS end to end deletion
	FssAllDelete = "FSS_ALL_DELETE"

	ResourceOCIDDimension     = "resourceOCID"
	ComponentDimension        = "component"
	BackendSetsCountDimension = "backendSetsCount"
	VolumeVpusPerGBDimension  = "vpusPerGB"
)

Variables

This section is empty.

Functions

func SendMetricData

func SendMetricData(metricPusher *MetricPusher, metric string, value float64, dimensionsMap map[string]string)

SendMetricData is used to send the metric

Types

type MetricPusher

type MetricPusher struct {
	// contains filtered or unexported fields
}

MetricPusher is the wrapper used to push metrics to OCI monitoring service.

func NewMetricPusher

func NewMetricPusher(logger *zap.SugaredLogger) (*MetricPusher, error)

NewMetricPusher creates a new OCI Metric pusher

type MonitoringClient

type MonitoringClient interface {
	PostMetricData(ctx context.Context, request monitoring.PostMetricDataRequest) (response monitoring.PostMetricDataResponse, err error)
}

MonitoringClient is wrapper interface over the oci golang monitoring client

Jump to

Keyboard shortcuts

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