package
7.17.28
Repository: https://github.com/elastic/beats.git
Documentation: pkg.go.dev

# Functions

GetKubernetesClusterIdentifier returns ClusterInfo for k8s if available.
GetPodMetaGen is a wrapper function that creates a metaGen for pod resource and has embeeded nodeMetaGen and namespaceMetaGen.
NewNamespaceAwareResourceMetadataGenerator creates a metadata generator with informatuon about namespace.
NewNamespaceMetadataGenerator creates a metagen for namespace resources.
NewNodeMetadataGenerator creates a metagen for service resources.
NewPodMetadataGenerator creates a metagen for pod resources.
NewResourceMetadataGenerator creates a metadata generator for a generic resource.
NewServiceMetadataGenerator creates a metagen for service resources.
WithFields FieldOption allows adding specific fields into the generated metadata.
WithMetadata FieldOption allows adding labels and annotations under sub-resource(kind) example if kind=namespace namespace.labels key will be added.

# Structs

AddResourceMetadataConfig allows adding config for enriching additional resources.
Config declares supported configuration for metadata generation.
Resource generates metadata for any kubernetes resource.

# Interfaces

MetaGen allows creation of metadata from either Kubernetes resources or their Resource names.

# Type aliases

FieldOptions allows additional enrichment to be done on top of existing metadata.