Advanced Configuration
When your environment includes both Kubernetes and VM-based (or bare metal) infrastructure, follow the setup instructions specific to each environment. This ensures that your data is correctly collected, filtered, and attributed across all sources.
Block unwanted entities from your cluster
Use OTTL-based filter statements to prevent unnecessary Kubernetes resources from being collected and sent to Coralogix. This helps reduce data volume and improve system performance.
Example: Helm chart configuration to exclude specific namespaces and resource types
opentelemetry-cluster-collector:
presets:
kubernetesResources:
enabled: true
filterStatements:
# Exclude specific namespaces
- 'body["metadata"]["namespace"] != "kube-system"'
- 'body["metadata"]["namespace"] != "default"'
- 'body["metadata"]["namespace"] != "monitoring"'
# Exclude specific resource types
- 'body["kind"] != "Event"'
- 'body["kind"] != "EndpointSlice"'
transformStatements:
# Remove specific labels to reduce payload size
- 'delete_key(body["metadata"]["labels"], "kubernetes.io/arch")'
- 'delete_key(body["metadata"]["labels"], "kubernetes.io/os")'
dropManagedFields:
enabled: true # Remove managedFields to minimize data
Theme
Light