LambStatus
LambStatus copied to clipboard
Custom metrics with no dimensions do not save/display properly
I'm on the latest version. (.64)
To reproduce:
- Create a custom metric with no dimensions.
- Select the custom metric from the drop-down list. It should look like metric - [].
- Click edit.
- Return to the selection screen. The DDL that should be populated is not.
- Add a dimension to the metric.
- Repeat the process. Metric saves as expected.
Thank you for your report, but I can't reproduce the issue.
Maybe I misunderstand some steps. Here are the steps I tried:
- Open the metrics page (
https://xxxx.cloudfront.net/metrics
). - Click '+ Add' button.
- Enter the Title (like 'Metric 1').
- Click 'Add' button. Now the new metric is created.
- Click 'Pencil' icon to edit the metric.
- Choose namespace and dimensions.
- Click 'Edit' button. Now the metric is updated.
- Click 'Pencil' icon again.
After these steps, it looks like the new namespace and dimensions are saved correctly.
Hi ks888, did you point it at a metric with no dimensions? It should look like
@mcheshier1 Running into the same issue here, did you find a workaround? Does it make sense to add a dimension?
If anyone stumbles upon this: An easy fix is to reuse your existing namespace and metric name for the dimension, then you'll be able to add them to LambStatus. In Node I'm using sth like this:
var params = {
MetricData: [
{
MetricName: metric,
Timestamp: new Date(),
Unit: 'Count',
Value: value,
Dimensions: [{
Name: 'MyMetric',
Value: metric,
}],
},
],
Namespace: 'MyMetric/' + namespace,
};
CloudWatch.putMetricData(params, callback);