19 Jul 2024 06:25 AM - last edited on 19 Jul 2024 09:32 AM by MaciejNeumann
We want to disable fullstack for selected namespaces and continue logging and basic metrics such as cpu and memory for some namespace (not sure if that's the equivalent for infra-only). Is this how to do it?
We are aware on how to enable/disable using this docs
Here is our dynakube
spec:
namespaceSelector:
matchExpressions:
- key: dynatrace-injection
operator: NotIn
values:
- disabled
oneAgent:
cloudNativeFullStack:
args:
- --set-infra-only=true
- --set-app-log-content-access=true
- --set-system-logs-access-enabled=false
we are in AKS
01 Aug 2024 03:24 PM
Hello - If our goal is to do full stack injection for most namespaces, and then only do the API Scraping (No injection) for specific namespaces, we should not need to define the OneAgent arg of `--set-infra-only=true`. Having this included would do Infra-only monitoring for all namespaces.
spec:
namespaceSelector:
matchExpressions:
- key: dynatrace-injection
operator: NotIn
values:
- disabled
oneAgent:
cloudNativeFullStack:
args:
- --set-app-log-content-access=true
- --set-system-logs-access-enabled=false
Based off the namespaceSelector defined above, any namespace which has the label `dynatrace-injection: disabled` will not have OneAgent injected and will only be scraped via the K8s API. All other namespaces will have OneAgent fullstackinjection performed on the pods contained within.
01 Aug 2024 05:00 PM
Thanks for the reply!
1. Actually, what we really want is fullstack for some namespace and infra-only for some namespace
2. I think i'm a little confuse that cloudNativeFullStack supports an arg of set-infra-only=true they look ironic for me.. or it ignores this args or it only supports set-infra-only=false