metrics

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMetricsTransportWrapper

func AddMetricsTransportWrapper(server *MetricsServer, config *rest.Config) *rest.Config

AddMetricsTransportWrapper adds a transport wrapper which increments 'numaplane_app_k8s_request_total' counter on each kubernetes request

Types

type MetricsServer

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

func NewMetricsServer

func NewMetricsServer() (*MetricsServer, error)

func (*MetricsServer) InGitSyncUpdateError

func (m *MetricsServer) InGitSyncUpdateError(gitSync *v1alpha1.GitSync)

InGitSyncUpdateError increments the sync counter for git sync status update failure

func (*MetricsServer) IncGitRequest

func (m *MetricsServer) IncGitRequest()

func (*MetricsServer) IncGitRequestFailed

func (m *MetricsServer) IncGitRequestFailed()

func (*MetricsServer) IncKubeCacheFailed

func (m *MetricsServer) IncKubeCacheFailed()

func (*MetricsServer) IncKubectlExec

func (m *MetricsServer) IncKubectlExec(command string)

func (*MetricsServer) IncKubernetesRequest

func (m *MetricsServer) IncKubernetesRequest(statusCode, verb, resourceKind, resourceNamespace string)

IncKubernetesRequest increments the kubernetes requests counter for an application

func (*MetricsServer) IncSync

func (m *MetricsServer) IncSync(gitSync *v1alpha1.GitSync, state gitopsSyncCommon.OperationPhase)

IncSync increments the sync counter for an application

func (*MetricsServer) ObserveGitRequestLatency

func (m *MetricsServer) ObserveGitRequestLatency(duration time.Duration)

func (*MetricsServer) ObserveReconcile

func (m *MetricsServer) ObserveReconcile(gitSync *v1alpha1.GitSync, duration time.Duration)

ObserveReconcile increments the reconciled counter for an application

func (*MetricsServer) ObserveWorkerQueueSyncWaitTime

func (m *MetricsServer) ObserveWorkerQueueSyncWaitTime(duration time.Duration)

ObserveWorkerQueueSyncWaitTime increments the sync counter for an application

func (*MetricsServer) SetKubeCachedResource

func (m *MetricsServer) SetKubeCachedResource(cache float64)

func (*MetricsServer) SetMonitoredKubeAPI

func (m *MetricsServer) SetMonitoredKubeAPI(apiRequest float64)

Jump to

Keyboard shortcuts

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