metrics

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: UPL-1.0 Imports: 7 Imported by: 0

Documentation

Index

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

func AddFixedLogMapEntries added in v1.1.1

func AddFixedLogMapEntries(ctx context.Context, name string, namespace string) context.Context

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 (m *Metrics) AddCRCountMetrics(ctx context.Context, component string, msg string, resourceName string, namespace string)

func (*Metrics) AddCRDeleteFaultMetrics

func (m *Metrics) AddCRDeleteFaultMetrics(ctx context.Context, component string, msg string, resourceName string, namespace string)

func (*Metrics) AddCRDeleteSuccessMetrics

func (m *Metrics) AddCRDeleteSuccessMetrics(ctx context.Context, component string, msg string, resourceName string, namespace string)

func (*Metrics) AddCRFaultMetrics

func (m *Metrics) AddCRFaultMetrics(ctx context.Context, component string, msg string, resourceName string, namespace string)

func (*Metrics) AddCRSuccessMetrics

func (m *Metrics) AddCRSuccessMetrics(ctx context.Context, component string, msg string, resourceName string, namespace string)

func (*Metrics) AddReconcileFaultMetrics

func (m *Metrics) AddReconcileFaultMetrics(ctx context.Context, component string, msg string, resourceName string, namespace string)

func (*Metrics) AddReconcileSuccessMetrics

func (m *Metrics) AddReconcileSuccessMetrics(ctx context.Context, component string, msg string, resourceName string, namespace string)

func (*Metrics) AddSecretCountMetrics

func (m *Metrics) AddSecretCountMetrics(ctx context.Context, component string, msg string, resourceName string, namespace string)

Jump to

Keyboard shortcuts

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