Greetings all!
One of our teams is running on GCP using Kubernetes and has the same Dynatrace problem raised daily which is a “Response time degradation”. We have been trying for weeks now to figure out how to isolate specific requests so that we can fine tune the anomaly detection around them.
Sounds straight forward, right? - Nope ![]()
As we have worked to figure this out, I have found more and more challenges.
The first thought was key requests, but there are multiple limitations on why that will not work.
IP Changes
The IP for the Elasticsearch services change anytime there is an OS update and / or Kubernetes update. Because key requests are configured at the service level, it is then lost once instances go away and new ones come in.
The name of the Elasticsearch service is always “Elasticsearch on <IP>:PORT” in Dynatrace. This is an easy fix through service naming rules which I later did, however that still did not provided any added benefit.
Service Merging
Then of course there is service merging. That too is a great feature until you come to this type of situation. You can merge all day long, but as soon as those instances go down and new ones come up it is back to the drawing board. There really needs to be a configuration option to allow for auto-merging for this approach. I have created an RFE on this approach which I have provided a link to below.
Web Request Naming Rules
After all that, I went back to the problem at hand which is the Dynatrace problem being raised daily. A lot of the web requests have paths which contain unique ID’s. In that case you would want to just create a web request naming rule to wildcard that part.
Great! Except…
That can only be done at the service level once again meaning that as soon as these instances go down and new ones come up that web request naming rule is history. This leads me to believe that there should be a way to configure web request naming rules at the process group level where the web request lives and I have also created an RFE for this approach which I have provided link to below.
Elasticsearch OneAgent Extension
We though perhaps by utilizing this it may provide deeper insight and provide more information to the Dynatrace software to deal with frequent IP changes, but we were never able to get past the configuration portion of the extension. Without going into too much detail, working with Dynatrace support it was found that the OneAgent extension for Elasticsearch executes its connection from the host to the pod and not from inside the pod. We do not expose the Docker port to the host for security reasons and as a result, the extension is unable to make a connection. An RFE was created for this as well which I have provided a link to below.
I feel like I am running around in circles chasing my tail on this one. I am so frustrated trying to figure this out that if I had any hair left on my head, it would now be gone
I should state that all the above approaches were just that, attempts to address the goal of isolating specific web requests and then not losing those settings due to IP changes.
Has anyone else ran into this? Have you found a solution if you have?
I have created 3 different RFE’s based off my findings in trying to find a solution to this.
- RFE: Add ability to configure web requests naming rules at the process group level
- RFE: Add ability to establish rules which in return auto configure service merging
- RFE: Add the option for Elasticsearch OneAgent extension configuration to connect from pod
Thanks!
