03 May 2023 10:32 AM
Hello members,
On GKE environment with a classic fullstack deployment, I want to instrument only namespaces which ends with "-pre" and "-pro" and disable all others.
I don't have information about how priorities are managed between rules on documentation.
I suppose (on top to bottom priority ?) did you think this configuration will work on my case :
Thank you in advance.
Regards Aurélien.
Solved! Go to Solution.
03 May 2023 11:42 AM
Hi @AurelienGravier ,
yes, they are executed in order
03 May 2023 12:06 PM
I've faced the same scenario and worked fine by using equal, I didn't try to use the "end with" condition but I think it should work with any other condition operator
03 May 2023 01:26 PM
OK I will try and confirm to you ! Thank you so much.
03 May 2023 12:06 PM
@Mohamed_Hamdy so perhaps it could be better to start on top with the rule which disable instrumentation if namespace exists and add specific rules after.
03 May 2023 12:42 PM
@AurelienGravier, no need to add disable Instrumentation if the namespace exists, it will disable the monitoring for all containers
03 May 2023 01:01 PM
also, you may apply "Do not monitor containers if Kubernetes namespace does not end with", to be honest, I haven't tested this condition yet, but the most important thing is to apply the rules before deploying the operator