Documentation ¶
Index ¶
- func CollectNodeMetrics(spec *apis.ElasticsearchSpec)
- func IncrementRestartCounterCert()
- func IncrementRestartCounterRolling()
- func IncrementRestartCounterScheduled()
- func RegisterCustomMetrics()
- func SetIndexRetentionDeleteNamespaceMetrics(mapping string, namespaces int)
- func SetIndexRetentionDocumentAge(isDeleteOp bool, mapping string, seconds uint64)
- func SetManagementStateMetric(isManaged bool)
- func SetRedundancyMetric(policy apis.RedundancyPolicyType)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectNodeMetrics ¶
func CollectNodeMetrics(spec *apis.ElasticsearchSpec)
func IncrementRestartCounterCert ¶
func IncrementRestartCounterCert()
Increment the metric value by "1" when the node restarts due to cert.
func IncrementRestartCounterRolling ¶
func IncrementRestartCounterRolling()
Increment the metric value by "1" when the node restarts due to rolling.
func IncrementRestartCounterScheduled ¶
func IncrementRestartCounterScheduled()
Increment the metric value by "1" when the node is scheduled for cert restart or rolling restart.
func RegisterCustomMetrics ¶
func RegisterCustomMetrics()
This function registers the custom metrics to the kubernetes controller-runtime default metrics.
func SetIndexRetentionDeleteNamespaceMetrics ¶
Sets the metric value with the number of namespaces that are affected by the delete by query operation per index retention policy.
func SetIndexRetentionDocumentAge ¶
Sets the metric value with the number of seconds that a document is retained for in a given index for a rollover or delete operation.
func SetManagementStateMetric ¶
func SetManagementStateMetric(isManaged bool)
Sets the metric value of the active management state to 1 and the rest to 0.
func SetRedundancyMetric ¶
func SetRedundancyMetric(policy apis.RedundancyPolicyType)
Sets the metric value of the active redudancy policy to 1 and the rest to 0.
Types ¶
This section is empty.