• 0
Tom S-L

Dimensionless Cloudwatch Metrics

Question

I've been creating datasources to collect our custom AWS Cloudwatch metrics as per the docs: https://www.logicmonitor.com/support/monitoring/cloud/monitoring-custom-cloudwatch-metrics/ - mainly this is fine...

However it can't cope with dimensionless metrics: "Namespace>Dimensions>Metric>AggregationMethod, where Dimensions should be one or more key value pairs"

I've tried creating datapoints without a dimension but it returns NAN (probably because LM requires "one or more key value pairs" for dimensions).

 

We currently use a Python script to collect most our custom metrics but it's resource intensive for our collectors and I'm trying to move away from it. 

Does anyone know of a way to use the 'AWS CLOUDWATCH' collector with dimensionless metrics?

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

The CloudWatch collection mechanism should work with dimensionless metrics - have you tried using the Poll Now feature?  You can see it on the raw data tab for the DataSource, and it should display any errors returned by AWS, as well as the request LM is making to AWS (so you can see if, e.g. the aggregation method is being incorrectly passed as a dimension).  We'll do some testing on our end to confirm data collection works for dimensionless metrics & put up an example in the docs.

Share this post


Link to post
Share on other sites
  • 0
19 hours ago, Sarah Terry said:

The CloudWatch collection mechanism should work with dimensionless metrics - have you tried using the Poll Now feature?  You can see it on the raw data tab for the DataSource, and it should display any errors returned by AWS, as well as the request LM is making to AWS (so you can see if, e.g. the aggregation method is being incorrectly passed as a dimension).  We'll do some testing on our end to confirm data collection works for dimensionless metrics & put up an example in the docs.

Hi Sarah,

Yes I've tried the Poll Now feature, It gives an HTTP status code of 200 with Error Code/Message both showing None.

 

Both tried around 13:00 BST, request descriptions as follows:

Not working (NaN) but returning HTTP200 and no errors:
Metric Path: SBProxy>E2EMetric>Sum
Req Desc: {Namespace: SBProxy,MetricName: E2EMetric,Dimensions: [],StartTime: Wed Sep 06 04:30:00 PDT 2017,EndTime: Wed Sep 06 05:00:00 PDT 2017,Period: 60,Statistics: [Average, Maximum, Minimum, SampleCount, Sum],}

Working
Metric Path: SBProxy>AutoScalingGroupName:##sbbroker_asg_name##>FileSize>Average
Req Desc: {Namespace: SBProxy,MetricName: FileSize,Dimensions: [{Name: AutoScalingGroupName,Value: [ASG_name_here]}],StartTime: Wed Sep 06 04:30:00 PDT 2017,EndTime: Wed Sep 06 05:00:00 PDT 2017,Period: 60,Statistics: [Average, Maximum, Minimum, SampleCount, Sum],}

 

A dimensionless example in the docs would be great thanks.

Share this post


Link to post
Share on other sites
  • 0

...Additionally, why is the query (even the working one) giving "Statistics: [Average, Maximum, Minimum, SampleCount, Sum]" when I've specified Average/Sum?

...and how do I change the "Period: 60"? Specifying period manually for the datapoint isn't updating the query shown in Poll Now.

 

:)

Share this post


Link to post
Share on other sites
  • 0
On 9/6/2017 at 5:58 PM, Tom S-L said:

...Additionally, why is the query (even the working one) giving "Statistics: [Average, Maximum, Minimum, SampleCount, Sum]" when I've specified Average/Sum?

...and how do I change the "Period: 60"? Specifying period manually for the datapoint isn't updating the query shown in Poll Now.

 

:)

 

Was this ever resolved or were you able to figure out how dimensionless Cloudwatch Metric could be monitored ?

 

I am facing the same issue.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.