Documentation ¶
Index ¶
- Constants
- func ExtractInstanceID(kyma *v1beta2.Kyma) (string, error)
- func ExtractShootID(kyma *v1beta2.Kyma) (string, error)
- func FetchLifecycleManagerMetrics() ([]*prometheusclient.Metric, error)
- func IsMissingMetricsAnnotationOrLabel(err error) bool
- type KymaMetrics
- func (k *KymaMetrics) CleanupMetrics(kymaName string)
- func (k *KymaMetrics) CleanupNonExistingKymaCrsMetrics(ctx context.Context, kcpClient client.Client) error
- func (k *KymaMetrics) RecordRequeueReason(kymaRequeueReason KymaRequeueReason, requeueType queue.RequeueType)
- func (k *KymaMetrics) RemoveModuleStateMetrics(kymaName, moduleName string)
- func (k *KymaMetrics) UpdateAll(kyma *v1beta2.Kyma) error
- type KymaRequeueReason
- type MandatoryModulesMetrics
- type ManifestMetrics
- func (k *ManifestMetrics) CleanupMetrics(manifestName string)
- func (k *ManifestMetrics) RecordManifestDuration(manifestName string, duration time.Duration)
- func (k *ManifestMetrics) RecordRequeueReason(requeueReason ManifestRequeueReason, requeueType queue.RequeueType)
- func (k *ManifestMetrics) RemoveManifestDuration(manifestName string)
- type ManifestRequeueReason
- type ModuleCondition
- type ModuleMetrics
- type PurgeError
- type PurgeMetrics
- func (p *PurgeMetrics) DeletePurgeError(ctx context.Context, kyma *v1beta2.Kyma, purgeError PurgeError)
- func (p *PurgeMetrics) SetPurgeError(ctx context.Context, kyma *v1beta2.Kyma, purgeError PurgeError)
- func (p *PurgeMetrics) UpdatePurgeCount()
- func (p *PurgeMetrics) UpdatePurgeTime(duration time.Duration)
- type SharedMetrics
- type WatcherMetrics
Constants ¶
View Source
const ( MetricKymaState = "lifecycle_mgr_kyma_state" MetricModuleState = "lifecycle_mgr_module_state" MetricRequeueReason = "lifecycle_mgr_requeue_reason_total" )
View Source
const ( MetricMandatoryTemplateCount = "lifecycle_mgr_mandatory_modules" MetricMandatoryModuleState = "lifecycle_mgr_mandatory_module_state" )
View Source
const ( MetricPurgeTime = "lifecycle_mgr_purgectrl_time" MetricPurgeRequests = "lifecycle_mgr_purgectrl_requests_total" MetricPurgeError = "lifecycle_mgr_purgectrl_error" ErrPurgeFinalizerRemoval PurgeError = "PurgeFinalizerRemovalError" ErrCleanup PurgeError = "CleanupError" )
View Source
const (
KymaNameLabel = "kyma_name"
)
View Source
const (
MetricModuleCondition = "lifecycle_mgr_module_condition"
)
View Source
const (
SelfSignedCertNotRenewMetrics = "lifecycle_mgr_self_signed_cert_not_renew"
)
Variables ¶
This section is empty.
Functions ¶
func FetchLifecycleManagerMetrics ¶
func FetchLifecycleManagerMetrics() ([]*prometheusclient.Metric, error)
Types ¶
type KymaMetrics ¶
type KymaMetrics struct { KymaStateGauge *prometheus.GaugeVec // contains filtered or unexported fields }
func NewKymaMetrics ¶
func NewKymaMetrics(sharedMetrics *SharedMetrics) *KymaMetrics
func (*KymaMetrics) CleanupMetrics ¶
func (k *KymaMetrics) CleanupMetrics(kymaName string)
CleanupMetrics deletes all 'lifecycle_mgr_kyma_state', 'lifecycle_mgr_module_state' metrics for the matching Kyma.
func (*KymaMetrics) CleanupNonExistingKymaCrsMetrics ¶
func (*KymaMetrics) RecordRequeueReason ¶
func (k *KymaMetrics) RecordRequeueReason(kymaRequeueReason KymaRequeueReason, requeueType queue.RequeueType)
func (*KymaMetrics) RemoveModuleStateMetrics ¶
func (k *KymaMetrics) RemoveModuleStateMetrics(kymaName, moduleName string)
RemoveModuleStateMetrics deletes all 'lifecycle_mgr_module_state' metrics for the matching module.
type KymaRequeueReason ¶
type KymaRequeueReason string
const ( //nolint:gosec // requeue reason label, no confidential content KymaUnderDeletionAndAccessSecretNotFound KymaRequeueReason = "kyma_under_deletion_with_no_access_secret" StatusUpdateToDeleting KymaRequeueReason = "kyma_status_update_to_deleting" LabelsAndFinalizersUpdate KymaRequeueReason = "labels_and_finalizers_update" CrdAnnotationsUpdate KymaRequeueReason = "crd_annotations_update" CrdsSync KymaRequeueReason = "crds_sync" ReconcileManifests KymaRequeueReason = "manifest_reconciliation" ModuleCatalogSync KymaRequeueReason = "module_catalog_sync" SkrWebhookResourcesInstallation KymaRequeueReason = "skr_webhook_installation" InitialStateHandling KymaRequeueReason = "initial_state_handling" SyncContextRetrieval KymaRequeueReason = "sync_context_retrieval" RemoteKymaDeletion KymaRequeueReason = "remote_kyma_deletion" SpecReplacementFromRemote KymaRequeueReason = "spec_replacement_from_remote" StatusSyncToRemote KymaRequeueReason = "status_sync_to_remote" ProcessingKymaState KymaRequeueReason = "processing_kyma_state" FinalizersRemovalFromRemoteKyma KymaRequeueReason = "finalizers_removal_from_remote_kyma" RemoteModuleCatalogDeletion KymaRequeueReason = "remote_module_catalog_deletion" CleanupManifestCrs KymaRequeueReason = "manifest_crs_cleanup" KymaDeletion KymaRequeueReason = "kyma_deletion" KymaRetrieval KymaRequeueReason = "kyma_retrieval" )
type MandatoryModulesMetrics ¶
type MandatoryModulesMetrics struct {
// contains filtered or unexported fields
}
func NewMandatoryModulesMetrics ¶
func NewMandatoryModulesMetrics() *MandatoryModulesMetrics
func (*MandatoryModulesMetrics) CleanupMetrics ¶
func (m *MandatoryModulesMetrics) CleanupMetrics(kymaName, moduleName string)
CleanupMetrics deletes all 'lifecycle_mgr_mandatory_module_state' metrics for the matching Kyma and Module.
func (*MandatoryModulesMetrics) RecordMandatoryModuleState ¶
func (m *MandatoryModulesMetrics) RecordMandatoryModuleState(kymaName, moduleName string, newState shared.State)
func (*MandatoryModulesMetrics) RecordMandatoryTemplatesCount ¶
func (m *MandatoryModulesMetrics) RecordMandatoryTemplatesCount(count int)
type ManifestMetrics ¶
type ManifestMetrics struct { ManifestDurationGauge *prometheus.GaugeVec }
func NewManifestMetrics ¶
func NewManifestMetrics(sharedMetrics *SharedMetrics) *ManifestMetrics
func (*ManifestMetrics) CleanupMetrics ¶
func (k *ManifestMetrics) CleanupMetrics(manifestName string)
func (*ManifestMetrics) RecordManifestDuration ¶
func (k *ManifestMetrics) RecordManifestDuration(manifestName string, duration time.Duration)
func (*ManifestMetrics) RecordRequeueReason ¶
func (k *ManifestMetrics) RecordRequeueReason(requeueReason ManifestRequeueReason, requeueType queue.RequeueType)
func (*ManifestMetrics) RemoveManifestDuration ¶
func (k *ManifestMetrics) RemoveManifestDuration(manifestName string)
type ManifestRequeueReason ¶
type ManifestRequeueReason string
const ( MetricManifestDuration = "reconcile_duration_seconds" ManifestNameLabel = "manifest_name" ManifestRetrieval ManifestRequeueReason = "manifest_retrieval" ManifestInit ManifestRequeueReason = "manifest_initialize" ManifestAddFinalizer ManifestRequeueReason = "manifest_add_finalizer" ManifestParseSpec ManifestRequeueReason = "manifest_parse_spec" ManifestUpdateSyncedOCIRef ManifestRequeueReason = "manifest_update_synced_oci_ref" ManifestInitSyncedOCIRef ManifestRequeueReason = "manifest_init_synced_oci_ref" ManifestClientInit ManifestRequeueReason = "manifest_client_init" ManifestRenderResources ManifestRequeueReason = "manifest_render_resources" ManifestPruneDiffNotFinished ManifestRequeueReason = "manifest_prune_diff_not_finished" ManifestPruneDiff ManifestRequeueReason = "manifest_prune_diff" ManifestPreDeleteEnqueueRequired ManifestRequeueReason = "manifest_pre_delete_enqueue_required" ManifestPreDelete ManifestRequeueReason = "manifest_pre_delete" ManifestSyncResourcesEnqueueRequired ManifestRequeueReason = "manifest_sync_resources_enqueue_required" ManifestSyncResources ManifestRequeueReason = "manifest_sync_resources" ManifestSyncState ManifestRequeueReason = "manifest_sync_state" ManifestReconcileFinished ManifestRequeueReason = "manifest_reconcile_finished" ManifestUnmanagedUpdate ManifestRequeueReason = "manifest_unmanaged_update" ManifestResourcesLabelRemoval ManifestRequeueReason = "manifest_labels_removal" )
type ModuleCondition ¶
type ModuleCondition string
type ModuleMetrics ¶
type ModuleMetrics struct {
// contains filtered or unexported fields
}
func NewModuleMetrics ¶
func NewModuleMetrics() *ModuleMetrics
func (*ModuleMetrics) CleanupMetrics ¶
func (m *ModuleMetrics) CleanupMetrics(kymaName string)
func (*ModuleMetrics) RemoveModuleCRWarningCondition ¶
func (m *ModuleMetrics) RemoveModuleCRWarningCondition(kymaName, moduleName string)
func (*ModuleMetrics) SetModuleCRWarningCondition ¶
func (m *ModuleMetrics) SetModuleCRWarningCondition(kymaName, moduleName string)
type PurgeError ¶
type PurgeError string
type PurgeMetrics ¶
type PurgeMetrics struct {
// contains filtered or unexported fields
}
func NewPurgeMetrics ¶
func NewPurgeMetrics() *PurgeMetrics
func (*PurgeMetrics) DeletePurgeError ¶
func (p *PurgeMetrics) DeletePurgeError(ctx context.Context, kyma *v1beta2.Kyma, purgeError PurgeError)
func (*PurgeMetrics) SetPurgeError ¶
func (p *PurgeMetrics) SetPurgeError(ctx context.Context, kyma *v1beta2.Kyma, purgeError PurgeError)
func (*PurgeMetrics) UpdatePurgeCount ¶
func (p *PurgeMetrics) UpdatePurgeCount()
func (*PurgeMetrics) UpdatePurgeTime ¶
func (p *PurgeMetrics) UpdatePurgeTime(duration time.Duration)
type SharedMetrics ¶
type SharedMetrics struct {
// contains filtered or unexported fields
}
func NewSharedMetrics ¶
func NewSharedMetrics() *SharedMetrics
type WatcherMetrics ¶
type WatcherMetrics struct {
// contains filtered or unexported fields
}
func NewWatcherMetrics ¶
func NewWatcherMetrics() *WatcherMetrics
func (*WatcherMetrics) CleanupMetrics ¶
func (w *WatcherMetrics) CleanupMetrics(kymaName string)
func (*WatcherMetrics) SetCertNotRenew ¶
func (w *WatcherMetrics) SetCertNotRenew(kymaName string)
Click to show internal directories.
Click to hide internal directories.