Documentation
¶
Overview ¶
+kubebuilder:validation:Optional
Index ¶
Constants ¶
const (
// ReceiverOTLP collects traces and logs from libraries and SDKs.
ReceiverOTLP = "otlp"
// ReceiverPrometheus collects metrics from environment and services.
ReceiverPrometheus = "prometheus"
// ProcessorEnrichment enriches traces, logs and metrics with discovery data.
ProcessorEnrichment = "enrichment"
// ProcessorMetrics generates metrics based on traces and logs and exposes them
// on application prometheus metrics endpoint.
ProcessorMetrics = "metrics"
// ProcessorBatchPrerollup batches incoming data before rolling up. This is
// required, as rollup processor can only roll up data inside a single batch.
ProcessorBatchPrerollup = "batch/prerollup"
// ProcessorBatchPostrollup batches data after rolling up, as roll up process
// shrinks number of data points significantly.
ProcessorBatchPostrollup = "batch/postrollup"
// ProcessorRollup rolls up data to decrease cardinality.
ProcessorRollup = "rollup"
// ExporterLogging exports telemetry using Aperture logger.
ExporterLogging = "aperturelogging"
// ExporterPrometheusRemoteWrite exports metrics to local prometheus instance.
ExporterPrometheusRemoteWrite = "prometheusremotewrite"
)
Variables ¶
This section is empty.
Functions ¶
func AgentOTELComponents ¶
func AgentOTELComponents(cache *entitycache.EntityCache,
agentInfo *agentinfo.AgentInfo,
promRegistry *prometheus.Registry,
engine iface.Engine,
) (component.Factories, error)
AgentOTELComponents constructs OTEL Collector Factories for Agent.
func ControllerOTELComponents ¶
func ControllerOTELComponents() (component.Factories, error)
ControllerOTELComponents constructs OTEL Collector Factories for Controller.
Types ¶
type BatchConfig ¶ added in v0.1.2
type BatchConfig 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 size of a batch which after hit, will trigger it to be sent.
SendBatchSize uint32 `json:"send_batch_size" validate:"gt=0" default:"10000"`
}
BatchConfig defines configuration for OTEL batch processor. swagger:model +kubebuilder:object:generate=true
func (*BatchConfig) DeepCopy ¶ added in v0.1.2
func (in *BatchConfig) DeepCopy() *BatchConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchConfig.
func (*BatchConfig) DeepCopyInto ¶ added in v0.1.2
func (in *BatchConfig) DeepCopyInto(out *BatchConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FxIn ¶ added in v0.1.2
type FxIn struct {
fx.In
Unmarshaller config.Unmarshaller
Listener *listener.Listener
PromClient promapi.Client
TLSConfig *tls.Config `optional:"true"`
}
FxIn consumes parameters via Fx.
type OTELConfigConstructor ¶ added in v0.1.2
type OTELConfigConstructor struct {
Type Type
}
OTELConfigConstructor is the constructor for the OTEL collector configuration.
type OtelConfig ¶ added in v0.1.2
type OtelConfig struct {
// GRPC listener addr for OTEL Collector.
GRPCAddr string `json:"grpc_addr" validate:"hostname_port" default:":4317"`
// HTTP listener addr for OTEL Collector.
HTTPAddr string `json:"http_addr" validate:"hostname_port" default:":4318"`
// BatchPrerollup configures batch prerollup processor.
BatchPrerollup BatchConfig `json:"batch_prerollup"`
// BatchPostrollup configures batch postrollup processor.
BatchPostrollup BatchConfig `json:"batch_postrollup"`
}
OtelConfig is the configuration for the OTEL collector. swagger:model +kubebuilder:object:generate=true
func (*OtelConfig) DeepCopy ¶ added in v0.1.2
func (in *OtelConfig) DeepCopy() *OtelConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OtelConfig.
func (*OtelConfig) DeepCopyInto ¶ added in v0.1.2
func (in *OtelConfig) DeepCopyInto(out *OtelConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.