Open Q&A
If there's no good subforum for your question - ask it here!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Entity Relationship Tagging

NateShenner
Newcomer

We are looking to create Auto Tag Rules based on entity relationships. (As mentioned here https://www.youtube.com/watch?v=Hh2tWerFnjk

I want to validate our process.

--Create the following tagging rules:(entity selector)

Entities matching type(SERVICE),toRelationships.calls(type(APPLICATION),tag("application:XYZ"))

Entities matching type(SERVICE), toRelationships.calls(type(SERVICE),tag("application:XYZ"))

Entities matching type(HOST),toRelationships.runsOnHost(type(SERVICE),tag("application:XYZ"))

Entities matching type(PROCESS_GROUP),toRelationships.runsOn(type(SERVICE),tag("application:XYZ"))

 

Questions I have:

1)Does the order that these are created matter? OR will dynatrace pick up these tagging rules once the pre-requisite tag has been applied?

2)Are we able to leverage placeholders? ie) {WebApplication:Name} 

This would prevent us from having to create a set of these rules for over 100 applications

 

 

In episode three of our #Dynatrace Community practice series we have Reinhard Weber, Managing Director of 360Performance GmbH, showing us his tips and tricks on using Dynatrace to do Advanced SSL Certificate Checks as well as advanced automated tagging rules. Please check out the following links ...
2 REPLIES 2

DanielS
DynaMight Guru
DynaMight Guru

Questions I have:

1)Does the order that these are created matter? OR will dynatrace pick up these tagging rules once the pre-requisite tag has been applied?

Hello @NateShenner the order itself is not important all rules are going to be executed.

2)Are we able to leverage placeholders? ie) {WebApplication:Name}

This would prevent us from having to create a set of these rules for over 100 applications
You can use placeholders under the rule but Available placeholders (not applicable for entity selector based rules)

DanielS_0-1770322716614.png

But if you want to iterate through different applications you can add the rules using the Settings Objects API and using a script to iterate the app names in your rules.

 

Dynatrace Certified Professional @ www.dosbyte.com

NateShenner
Newcomer

OK thanks for this @DanielS ! I have applied the rules for one of our applications, We are seeing it properly apply rules to the services immediately related to the Web App, but the other tags are not being applied as expected. Services -> Services, Service -> Host, etc. Do the rules I supplied above look right? Anything else i can look into? 

 

As for using the API to create the rules, that is exactly how i am approaching this. Was hoping for a cleaner solution where we would only see one Tag Rule that had something like Application: {WebApplication.Name} and could then use that same placeholder in the entitySelectors. Doesn't sound like that is possible?

Featured Posts