cloudwatch-metrics
cloudwatch-metrics copied to clipboard
[BUG] No metrics are published using 1.3.3
We recently upgraded from version 1.3.0 to 1.3.3.Since we did that, our services stopped reporting their metrics to CloudWatch. By downgrading to 1.3.0, we got everything to work again.
We publish our metrics in the following way, which seems to still match the examples from the README:
CloudwatchMetrics.initialize({
accessKeyId: config.get('...'),
secretAccessKey: config.get('...'),
region: config.get('...'),
});
// ...
new CloudwatchMetrics.Metric(
`name`,
unit,
[ {
Name: 'Environment',
Value: 'Prod'
} ],
{
summaryInterval: ...,
sendInterval: ...,
maxCapacity: ...,
},
);
metric.summaryPut(value, name);
At first I thought it might be related to this change: 56ab15a4181478c3aad3b11bb4995cba6c331f1a, but summaryPut seems to already have that default value in place