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

Automatic tagging based on Lambda Name

vishnu_kumar
Helper

Hi All,

We have our application Id in the AWS Lambda name, so we would like to add a tag "AppID" on the entity like:

vishnu_kumar_0-1744619456540.png

Thought the entitySelector works as required, the tag value is set as the regex itself.

How can apply auto tag for my scenario?

DT Enthusiast
7 REPLIES 7

yanezza
Dynatrace Pro
Dynatrace Pro

Hi,
apply a capture group

Yanez Diego Parolin

@yanezza , yeah but the attribute "Name" or "DetectedName" is coming as empty and hence the reason the capture fails

Need to know whats the syntax on getting the entity name for Lambda

DT Enthusiast

I don't think exist a Placeholder for the AWS Lambda Name. Try {ProcessGroup:AmazonLambdaFunctionName}

Yanez Diego Parolin

the involved entity does not show up in processgroup schema, so this too wont work.

DT Enthusiast

IzabelaRokita
Community Team
Community Team

Hey @vishnu_kumar, did you manage to find the solution to your problem? If so, it would be amazing if you've shared it with the rest of the Community! If not, let me know, and I'll look for some further assistance 😊

Hi @IzabelaRokita , no actually, I went with a static Auto tagging without any placeholders and a value of 'APP12345' like

type(AWS_LAMBDA_FUNCTION), entityName.startsWith("APP12345")

Would be happy, if we get a better solution.

DT Enthusiast

Maheedhar_T
Mentor

Hi @vishnu_kumar ,
Not sure if you got the answer to this or not yet but a better way here would be to use Service name. Lambda functions would be detected in Dynatrace as RPC services.
So we can use this one {Service:DetectedName} in the condition and then use regex to extract the required part from the name of the lambda and instead using Entity Selector, use the Monitored entity itself, Select Services and add the following conditions.

 

Maheedhar_T_1-1753354860420.png


Hope this helps.


Regards,
@Maheedhar_T 

 

Maheedhar

Featured Posts