26 Nov 2024 04:47 PM - last edited on 27 Nov 2024 08:19 AM by MaciejNeumann
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:
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)
Solved! Go to Solution.
26 Nov 2024 05:44 PM
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
26 Nov 2024 06:41 PM - edited 26 Nov 2024 06:41 PM
Could you give me an example of how to do this?
27 Nov 2024 09:05 AM
Hello @gustavodutra
PFA Doc URL:
Hoping it helps.
BR,
Peter
27 Nov 2024 06:32 AM
You can try to add the tags to filter entity, it may use the tags in problem out put.
27 Nov 2024 02:49 PM - edited 27 Nov 2024 02:51 PM
Hi everyone,
I wanted to inform you that I was able to assign a tag to a custom event by following the steps below:
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