# Advanced configuration

Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fuser-guides%2Finfrastructure%2Finfrastructure-explorer%2Fadvanced-configuration.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fuser-guides%2Finfrastructure%2Finfrastructure-explorer%2Fadvanced-configuration.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

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[​](#block-unwanted-entities-from-your-cluster "Direct link to 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
```

## Related resources[​](#related-resources "Direct link to Related resources")

* [Getting started with Kubernetes monitoring](https://docs-docusaurus.kinsta.page/user-guides/infrastructure/infrastructure-explorer/getting-started-kubernetes-monitoring/.md)
* [Data usage](https://docs-docusaurus.kinsta.page/user-guides/infrastructure/infrastructure-explorer/infra-data-use/.md)
* [FAQs](https://docs-docusaurus.kinsta.page/user-guides/infrastructure/infrastructure-explorer/faqs/.md)
