config

package
v2.21.0-rc.1 Latest Latest
Warning

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

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

Documentation

Overview

+kubebuilder:validation:Optional

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentOTelConfig

type AgentOTelConfig struct {
	// BatchPrerollup configures the OTel batch pre-processor.
	BatchPrerollup BatchPrerollupConfig `json:"batch_prerollup"`
	// BatchPostrollup configures the OTel batch post-processor.
	BatchPostrollup             BatchPostrollupConfig `json:"batch_postrollup"`
	otelconfig.CommonOTelConfig `json:",inline"`
	// DisableKubernetesScraper disables the default metrics collection for Kubernetes resources.
	DisableKubernetesScraper bool `json:"disable_kubernetes_scraper" default:"false"`
	// DisableKubeletScraper disables the default metrics collection for kubelet.
	// Deprecated: kubelet scraper is removed entirely, so this flag makes no difference.
	DisableKubeletScraper bool `json:"disable_kubelet_scraper" default:"false"`
	// EnableHighCardinalityPlatformMetrics filters out high cardinality Aperture platform metrics from being
	// published to Prometheus. Filtered out metrics are:
	//   * "grpc_server_handled_total.*"
	//   * "grpc_server_handling_seconds.*"
	//   * "grpc_server_handling_seconds_bucket.*"
	//   * "grpc_server_handling_seconds_count.*"
	//   * "grpc_server_handling_seconds_sum.*"
	//   * "grpc_server_msg_received_total.*"
	//   * "grpc_server_msg_sent_total.*"
	//   * "grpc_server_started_total.*"
	EnableHighCardinalityPlatformMetrics bool `json:"enable_high_cardinality_platform_metrics" default:"false"`
}

AgentOTelConfig is the configuration for Agent's OTel collector. +kubebuilder:object:generate=true

func (*AgentOTelConfig) DeepCopy

func (in *AgentOTelConfig) DeepCopy() *AgentOTelConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentOTelConfig.

func (*AgentOTelConfig) DeepCopyInto

func (in *AgentOTelConfig) DeepCopyInto(out *AgentOTelConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BatchPostrollupConfig

type BatchPostrollupConfig struct {
	// Timeout sets the time after which a batch will be sent regardless of size.
	Timeout config.Duration `json:"timeout" validate:"gt=0" default:"1s"`

	// SendBatchSize is the number of metrics to send in a batch.
	SendBatchSize uint32 `json:"send_batch_size" validate:"gt=0" default:"100"`

	// SendBatchMaxSize is the upper limit of the batch size. Bigger batches will be split
	// into smaller units.
	SendBatchMaxSize uint32 `json:"send_batch_max_size" validate:"gte=0" default:"100"`
}

BatchPostrollupConfig defines post-rollup configuration for OTel batch processor. +kubebuilder:object:generate=true

func (*BatchPostrollupConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchPostrollupConfig.

func (*BatchPostrollupConfig) DeepCopyInto

func (in *BatchPostrollupConfig) DeepCopyInto(out *BatchPostrollupConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BatchPrerollupConfig

type BatchPrerollupConfig struct {
	// Timeout sets the time after which a batch will be sent regardless of size.
	Timeout config.Duration `json:"timeout" validate:"gt=0" default:"10s"`

	// SendBatchSize is the number of metrics to send in a batch.
	SendBatchSize uint32 `json:"send_batch_size" validate:"gt=0" default:"10000"`

	// SendBatchMaxSize is the upper limit of the batch size. Bigger batches will be split
	// into smaller units.
	SendBatchMaxSize uint32 `json:"send_batch_max_size" validate:"gte=0" default:"10000"`
}

BatchPrerollupConfig defines pre-rollup configuration for OTel batch processor. +kubebuilder:object:generate=true

func (*BatchPrerollupConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchPrerollupConfig.

func (*BatchPrerollupConfig) DeepCopyInto

func (in *BatchPrerollupConfig) DeepCopyInto(out *BatchPrerollupConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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