Skip to content

Add basic cloudwatch metrics for new lambda provider#8006

Merged
dominikschubert merged 1 commit intomasterfrom
lambda-cw-metrics
Mar 29, 2023
Merged

Add basic cloudwatch metrics for new lambda provider#8006
dominikschubert merged 1 commit intomasterfrom
lambda-cw-metrics

Conversation

@dominikschubert
Copy link
Member

SImply restores parity with the old provider in regards to the CloudWatch metrics we record in the service.

Records two metrics (same as the old provider):

  • Invocations ... a simple numeric counter. Records 1 for each invocation result (both success & result)
  • Errors ... simple numeric counter. Records 1 for each invocation error. This also applies to failed retries

The only other change to the old provider here is that we now connect to the correct region when sending the records.

Would be a cool project to extend this and add proper parity with AWS for all the service level metrics.

@dominikschubert dominikschubert requested a review from steffyP March 29, 2023 16:16
@dominikschubert dominikschubert requested a review from dfangl as a code owner March 29, 2023 16:16
@dominikschubert dominikschubert self-assigned this Mar 29, 2023
Copy link
Member

@steffyP steffyP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for jumping on this so quickly! 🙏
LGTM :)

@coveralls
Copy link

Coverage Status

Coverage: 81.851% (-0.03%) from 81.878% when pulling 2ba6b5a on lambda-cw-metrics into cb50656 on master.

@github-actions
Copy link

LocalStack integration with Pro

1 868 tests  ±0   1 677 ✔️ +1   1h 23m 51s ⏱️ +26s
       1 suites ±0      191 💤  - 1 
       1 files   ±0          0 ±0 

Results for commit 2ba6b5a. ± Comparison against base commit cb50656.

@dominikschubert dominikschubert merged commit 77405cf into master Mar 29, 2023
@dominikschubert dominikschubert deleted the lambda-cw-metrics branch March 29, 2023 20:54
@dominikschubert dominikschubert added the semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases label May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants