22 Nov 2023 12:08 PM
am trying to deploy DT on specific OKE namespace and following the documentation as beloe
Configure monitoring for namespaces and pods - Dynatrace Managed Docs
and the below command is done succesfully
kubectl label namespace gitlab-runner monitor=gitlab
namespace/gitlab-runner labeled
but unfortunately, DT didn't focus on the specific namespace and start monitoring all namespaces.
any idea?
Regards,
22 Nov 2023 12:37 PM
Hi @IslamEsmail,
If you do not find the solution via the config files, try this via the DT GUI.
1. Create a rule do not monitor the namespaces at all.
2. Create a rule for monitor the required namespace.
You can do this via API also.
I hope it helps.
Best regards,
Mizső
22 Nov 2023 03:19 PM
thanks , that something Iam going to try,
but allow me to ask is that will reflect in the page of the kubernetes namespace's will be 1 instead of xxx
22 Nov 2023 07:55 PM
Hi @IslamEsmail,
I hope I understand you correctly.
With step1 and step2 together result is that only one gitlab namspace will be monitored.
If you need more namespaces you should repeate the step2 or change the condition operator from equals to eg. contains. (eg. you can implement a naming convention for namespaces which require deep monitoring).
Best regards,
Mizső
23 Nov 2023 01:47 PM
Hi @Mizső
am trying your suggested solution step by step , starting with the step number 1 applying dont monitor namespace rules and wait for awhile but nothing happened, any idea?
Regards,
27 Nov 2023 07:06 AM
Hi @Mizső
Am trying your approach, but it didn't work,,, nothing change as monitored Kubernetes and also the license didn't Decrease.
regards,
27 Nov 2023 09:43 AM
Hi @IslamEsmail,
If you use cloudNativeFullStack mode licences will not dercerase becasue the licensing worker node memory base (It does not matter which or how many namespaces are monitored. I you use applicationonly monitoring mode licences depend on the instrumneted pod memory limits. If you use my solution you should not see any services in the unmonitored namespaces.
I hope it helps.
Best regards,
Mizső