Documentation ¶
Overview ¶
Package sourceprocessor implements a processor for tagging _source* fields
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() component.ProcessorFactory
NewFactory returns a new factory for the Span processor.
func SafeEncodeString ¶
SafeEncodeString converts the pod_template_hash to an alphanumeric string using the same logic Kubernetes uses at https://github.com/kubernetes/apimachinery/blob/18a5ff3097b4b189511742e39151a153ee16988b/pkg/util/rand/rand.go#L119
Types ¶
type Config ¶
type Config struct { *config.ProcessorSettings `mapstructure:"-"` Collector string `mapstructure:"collector"` Source string `mapstructure:"source"` SourceName string `mapstructure:"source_name"` SourceCategory string `mapstructure:"source_category"` SourceCategoryPrefix string `mapstructure:"source_category_prefix"` SourceCategoryReplaceDash string `mapstructure:"source_category_replace_dash"` ExcludeNamespaceRegex string `mapstructure:"exclude_namespace_regex"` ExcludePodRegex string `mapstructure:"exclude_pod_regex"` ExcludeContainerRegex string `mapstructure:"exclude_container_regex"` ExcludeHostRegex string `mapstructure:"exclude_host_regex"` AnnotationPrefix string `mapstructure:"annotation_prefix"` ContainerKey string `mapstructure:"container_key"` NamespaceKey string `mapstructure:"namespace_key"` PodKey string `mapstructure:"pod_key"` PodIDKey string `mapstructure:"pod_id_key"` PodNameKey string `mapstructure:"pod_name_key"` PodTemplateHashKey string `mapstructure:"pod_template_hash_key"` SourceHostKey string `mapstructure:"source_host_key"` }
Config defines configuration for Source processor.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.