package
0.0.0-20231110223232-4efcaecfc7df
Repository: https://github.com/googlecontainertools/kpt-resource-group.git
Documentation: pkg.go.dev

# Functions

ComputeReconcilerNameType computes the reconciler name from the ResourceGroup CR name.
RecordClusterScopedResourceCount produces a measurement for ClusterScopedResourceCount view.
RecordCRDCount produces a measurement for RecordCRDCount view.
RecordKCCResourceCount produces a measurement for the KCCResourceCount view.
RecordNamespaceCount produces a measurement for the NamespaceCount view.
RecordPipelineError produces a measurement for PipelineErrorView.
RecordReadyResourceCount produces a measurement for the ReadyResourceCount view.
RecordReconcileDuration produces a measurement for the ReconcileDuration view.
RecordResourceCount produces a measurement for the ResourceCount view.
RecordResourceGroupTotal produces a measurement for the ResourceGroupTotalView.
RegisterOCAgentExporter creates the OC Agent metrics exporter.
RegisterReconcilerMetricsViews registers the views so that recorded metrics can be exported in the reconcilers.

# Constants

nolint:gosec // ignore the false-positive alert for G101: Potential hardcoded credentials CMSNamespace is the name of the Config Sync controller's namespace.
NsReconcilerPrefix is the prefix used for all Namespace reconcilers.
RepoSyncName is the expected name of any RepoSync CR.
RootReconcilerPrefix is the prefix usef for all Root reconcilers.
RootSyncName is the expected name of any RootSync CR.

# Variables

ClusterScopedResourceCount tracks the number of cluster-scoped resources in a ResourceGroup CR.
ClusterScopedResourceCountView counts number of namespaces in a ResourceGroup.
CRDCount tracks the number of CRDs in a ResourceGroup CR.
CRDCountView counts number of namespaces in a ResourceGroup.
KCCResourceCount tracks the number of KCC resources in a ResourceGroup CR.
KCCResourceCountView aggregates the KCC resources in a ResourceGroup.
KeyComponent groups metrics by their component.
KeyErrorCode groups metrics by their error code.
KeyName groups metrics by their name of reconciler.
KeyOperation groups metrics by their operation.
KeyResourceGroup groups metrics by their resource group.
KeyStallReason groups metrics by the stall condition reason field.
KeyType groups metrics by their resource reconciler type.
NamespaceCount tracks the number of resource namespaces in a ResourceGroup CR.
NamespaceCountView counts number of namespaces in a ResourceGroup.
PipelineError tracks the error that happened when syncing a commit.
PipelineErrorView aggregates the PipelineError by components TODO: add link to same metric in Config Sync under pkg/metrics/views.go.
ReadyResourceCount tracks the number of resources with Current status in a ResourceGroup CR.
ReadyResourceCountView aggregates the resources ready in a ResourceGroup.
ReconcileDuration tracks the time duration in seconds of reconciling a ResourceGroup CR by the ResourceGroup controller.
ReconcileDurationView aggregates the ReconcileDuration metric measurements.
ResourceCount tracks the number of resources in a ResourceGroup CR.
ResourceCountView aggregates the ResourceCount metric measurements.
ResourceGroupTotal tracks the total number of ResourceGroup CRs in a cluster.
ResourceGroupTotalView aggregates the ResourceGroupTotal metric measurements.
ResourceKeyDeploymentName groups metrics by k8s deployment name.