Documentation ¶
Index ¶
- Constants
- func AddFixedLogMapEntries(ctx context.Context, name string, namespace string) context.Context
- type Metrics
- func (m *Metrics) AddCRCountMetrics(ctx context.Context, component string, msg string, resourceName string, ...)
- func (m *Metrics) AddCRDeleteFaultMetrics(ctx context.Context, component string, msg string, resourceName string, ...)
- func (m *Metrics) AddCRDeleteSuccessMetrics(ctx context.Context, component string, msg string, resourceName string, ...)
- func (m *Metrics) AddCRFaultMetrics(ctx context.Context, component string, msg string, resourceName string, ...)
- func (m *Metrics) AddCRSuccessMetrics(ctx context.Context, component string, msg string, resourceName string, ...)
- func (m *Metrics) AddReconcileFaultMetrics(ctx context.Context, component string, msg string, resourceName string, ...)
- func (m *Metrics) AddReconcileSuccessMetrics(ctx context.Context, component string, msg string, resourceName string, ...)
- func (m *Metrics) AddSecretCountMetrics(ctx context.Context, component string, msg string, resourceName string, ...)
Constants ¶
View Source
const ( ReconcileSuccess = "oci_service_operator_reconcile_success" ReconcileFault = "oci_service_operator_reconcile_fault" CRDeleteSuccess = "oci_service_operator_cr_delete_success" CRDeleteFault = "oci_service_operator_cr_delete_fault" CRSuccess = "oci_service_operator_cr_success" CRFault = "oci_service_operator_cr_fault" CRCount = "oci_service_operator_cr_count" SecretCount = "oci_service_operator_secret_count" CRLatency = "oci_service_operator_cr_latency" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Metrics ¶
type Metrics struct { Name string ServiceName string Logger loggerutil.OSOKLogger }
func Init ¶
func Init(serviceName string, log loggerutil.OSOKLogger) *Metrics
func (*Metrics) AddCRCountMetrics ¶
func (*Metrics) AddCRDeleteFaultMetrics ¶
func (*Metrics) AddCRDeleteSuccessMetrics ¶
func (*Metrics) AddCRFaultMetrics ¶
func (*Metrics) AddCRSuccessMetrics ¶
func (*Metrics) AddReconcileFaultMetrics ¶
func (*Metrics) AddReconcileSuccessMetrics ¶
Click to show internal directories.
Click to hide internal directories.