1
votes

I have microservice that sends some custom metrics to AWS CloudWatch. Metric name consists of package name and some other data. For example gauge.com.example.test.time and gauge.com.example.test2.time and so on

Now I need to create some alarms based on this metrics. Is it possible to specify some reqular expression in metric name field when you create CloudWatch alarm instead of manual creation of separate alarm for each metric?

I tried such things: gauge.com.example..time gauge.com.example.*.time gauge.com.example.(\w).time and many other things but without success.

2
good question but I do not believe you can do that.Asdfg

2 Answers

2
votes

Not possible. From Creating Amazon CloudWatch Alarms

You can create a CloudWatch alarm that watches a single metric.