12 Jan 2024 03:20 PM - last edited on 06 Mar 2024 03:33 PM by Michal_Gebacki
I have been splitting services by several techniques, according to
https://community.dynatrace.com/t5/Open-Q-A/Is-it-possible-to-split-a-service/m-p/121066
Strangely today I was trying to split a "FULL_WEB_REQUEST" service by the URL hostname, and it seems it's not possible. While it seems that it's possible to do this with "Public network services" and "Unmonitored hosts", it doesn't seem to be possible with "FULL_WEB_REQUEST".
The best approximation I have managed is to do it through a condition, with something like:
{
"attributeType": "URL_HOST_NAME",
"compareOperations": [
{
"type": "STARTS_WITH",
"negate" : false,
"ignoreCase" : "true",
"values" : [ "www001.site.pt"] }
] }
but I need to do it for some 80 conditions, and it wouldn't be dynamic...
Any ideas?
Solved! Go to Solution.
14 Jan 2024 08:17 PM
@AntonioSousa Not sure about the reason (probably since the rules are evaluated differently for outgoing where you have only the client side monitored), but it's not in general a recommended approach due to possible volatility.
If you have like 80+ conditions, it's a good way to use monaco to define the detection rules as it now supports proper templating. And you can define it then with a simple list.
14 Jan 2024 08:48 PM - edited 14 Jan 2024 08:58 PM
Thanks for the answer. Looks like I'm going to put in a product idea (it's here: https://community.dynatrace.com/t5/Product-ideas/Split-a-quot-FULL-WEB-REQUEST-quot-service-by-the-U... ), as this is only a temporary solution, as the hostnames involved might increase with time.
In the meantime, I was doing it through the API, but now I have discovered that you can also do it through the UI:
https://docs.dynatrace.com/docs/platform-modules/applications-and-microservices/services/service-det...
14 Jan 2024 09:14 PM
UI has been there for more than a year (probably two), but for more complex scenarios such as 80+ rules. I always prefer to do it as code. Manually typing dozens of rules is error-prone.
14 Jan 2024 11:42 PM
Have always done it API way, so not difficult to do all of them.
Also figured out that you cannot do some of the configs in the UI....