Forum Discussion

mraja's avatar
7 months ago

Cloudwatch custom datasource metric path including wildvalue

Hi,

I have created a cloudwatch custom datasource to pull custom metrics from cloudwatch by following this document - https://www.logicmonitor.com/support/lm-cloud/getting-started-lm-cloud/5-adding-monitoring-custom-aws-cloudwatch-metrics

We got a scenario where we are pulling custom metric for a AMQ broker in cloudwatch. So we created a datasource for that, While creating datapoints (where metric path is specified) we like to include wildvalue in that.
metric path we looking to create - pulling CPU utilization metric for different brokers. Where ##wildvalue## is placed with Broker Name.
AWS/AmazonMQ>Broker:##wildvalue##-1>CpuUtilization>Average
AWS/AmazonMQ>Broker:##wildvalue##-2>CpuUtilization>Average

When wildvalue is replaced with Broker Name - “prod-1”.. Metric path should look like below.
AWS/AmazonMQ>Broker:prod-1-1>CpuUtilization>Average
AWS/AmazonMQ>Broker:prod-1-2>CpuUtilization>Average

By this way we can reduce number of datapoints created a datasource, also we can use that datasource for multiple devices. So could someone please provide suggestion on this.

Thanks.,

No RepliesBe the first to reply