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" // 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" )
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
Click to show internal directories.
Click to hide internal directories.