cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OKE Monitor only specific namespaces

IslamEsmail
Contributor

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

IslamEsmail_0-1700654800303.png

 but unfortunately, DT didn't focus on the specific namespace and start monitoring all namespaces.

any idea?

Regards,

6 REPLIES 6

Mizső
DynaMight Leader
DynaMight Leader

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.

Mizs_0-1700656402520.png

2. Create a rule for monitor the required namespace.

Mizs_1-1700656460751.png

You can do this via API also.

Mizs_3-1700656632192.png

I hope it helps.

Best regards,

Mizső

Certified Dynatrace Professional

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

Mizső
DynaMight Leader
DynaMight Leader

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ő

Certified Dynatrace Professional

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, 

Hi @Mizső 

Am trying your approach, but it didn't work,,, nothing change as monitored Kubernetes and also the license didn't Decrease.

regards,

Mizső
DynaMight Leader
DynaMight Leader

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ő

Certified Dynatrace Professional

Featured Posts