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

Tags in metric events

gustavodutra
Helper

Is it possible to create a tag for metrics events? I created an event based on the metric "builtin:cloud.aws.alb.connections.new," and it's working fine. Here is an example image:

gustavodutra_0-1732639505328.png

But I need to add a tag to this item so that when I receive an alert, it can be forwarded to ServiceNow to start an incident. However, I am unable to add a tag to this type of event, and I would like to know if there is any way to do this.

My metric event:

builtin:cloud.aws.alb.connections.new:filter(and(or(in("dt.entity.aws_application_load_balancer",entitySelector("type(aws_application_load_balancer),entityName.equals(~"alb-private-*****~")"))))):splitBy():sort(value(auto,descending)):limit(20)

6 REPLIES 6

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

Not sure if you can add a tag to a metric event. You can always adding metric event to alerting profile (base on properties, title or another event filter.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Could you give me an example of how to do this?

Dynatrace Davis® AI automatically analyzes and alerts abnormal situations within your dynamic IT infrastructure and attempts to identify any relevant impact and root cause. But every business works differently and you might want to use the power of Davis to configure anomaly detection on your ...

You can try to add the tags to filter entity, it may use the tags in problem out put. 

gustavodutra
Helper

Hi everyone,

I wanted to inform you that I was able to assign a tag to a custom event by following the steps below:

  1. Go to Settings > Alerting.
  2. Select Problem alerting profiles.
  3. Choose the desired alerting profile.
  4. Expand the profile settings.
  5. Look for "Event Filters".
  6. Click on Add event filter.
  7. Configure the filter as needed for the alert.

Additionally, I encountered an issue with the metric that was previously configured. It had the following fields:

Previous Metric Selector:

builtin:cloud.aws.alb.connections.new:filter(and(or(in("dt.entity.aws_application_load_balancer",entitySelector("type(aws_application_load_balancer),entityName.equals(~"alb-private-******~")"))))):splitBy():sort(value(auto,descending)):limit(20)

The issue was with the use of the splitBy():sort(value(auto,descending)):limit(20) command, which seemed to cause a conflict. After removing it, the alert started working correctly.

Updated Metric Selector:

builtin:cloud.aws.alb.connections.new:filter(and(or(in("dt.entity.aws_application_load_balancer",entitySelector("type(aws_application_load_balancer),entityName.equals(~"alb-private-******~")")))))

Now, the configuration is working properly, and alerts are being generated as expected.

If anyone has questions or needs further information, feel free to reach out!

Best regards,
Gustavo 

Hi @gustavodutra 

Thanks for the updates and sharing the results.

Good Job.

BR,

Peter

Featured Posts