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

Splitting a service by "URL_HOST_NAME"

AntonioSousa
DynaMight Guru
DynaMight Guru

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?

Antonio Sousa
4 REPLIES 4

Julius_Loman
DynaMight Legend
DynaMight Legend

@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.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

AntonioSousa
DynaMight Guru
DynaMight Guru

@Julius_Loman,

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...

Antonio Sousa

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.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

@Julius_Loman,

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....

Antonio Sousa

Featured Posts