Skip to content

Commit 687b981

Browse files
author
Chesley Pappas
committed
fix(cloudwatch): use correct metric statistic for IncomingLogEvents
1 parent 1eff500 commit 687b981

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

lib/monitoring/aws-cloudwatch/CloudWatchLogsMetricFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class CloudWatchLogsMetricFactory extends BaseMetricFactory<CloudWatchLog
3434
metricIncomingLogEvents() {
3535
return this.metricFactory.createMetric(
3636
"IncomingLogEvents",
37-
MetricStatistic.N,
37+
MetricStatistic.SUM,
3838
"Logs",
3939
this.dimensionsMap,
4040
undefined,

test/monitoring/aws-cloudwatch/__snapshots__/LogMonitoring.test.ts.snap

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)