metrics

package
v0.0.0-...-a5c132e Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

func SetIndexRetentionDeleteNamespaceMetrics(mapping string, namespaces int)

Sets the metric value with the number of namespaces that are affected by the delete by query operation per index retention policy.

func SetIndexRetentionDocumentAge

func SetIndexRetentionDocumentAge(isDeleteOp bool, mapping string, seconds uint64)

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.

Jump to

Keyboard shortcuts

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