Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

Construct: Metrics, Dashboards and Alarms #83

Open
2 of 5 tasks
sam-goodwin opened this issue Jul 6, 2021 · 5 comments
Open
2 of 5 tasks

Construct: Metrics, Dashboards and Alarms #83

sam-goodwin opened this issue Jul 6, 2021 · 5 comments
Assignees
Labels
aws-serverless Related to serverless applications on AWS

Comments

@sam-goodwin
Copy link
Contributor

sam-goodwin commented Jul 6, 2021

We should integrate the LambdaRuntime with the embedded metrics library to output a base level of domain specific metrics for Command, Event, Policy, ReadModel.

Then we can generate dashboards and alarms on the infrastructure side, allowing for developers to customize the thresholds but providing sane defaults out of the box.

Our dashboards can also link to pre-populated cloud watch insights queries that search for event handler logs or even search a cloud watch log that includes all events in a BoundedContext.

  • instrument handlers with metrics for Commands and Policies
  • generate a dashboard with default metrics for a Bounded Context
  • generate default alarm configuration for a bounded context and add to dashboard
  • generate cloudwatch logs insights links for each of the lambda handlers and add them to the dashboard
  • configure X-Ray for tracing commands, events and polices.
@sam-goodwin sam-goodwin changed the title Metrics, Dashboards and Alarms Construct: Metrics, Dashboards and Alarms Jul 6, 2021
@sam-goodwin
Copy link
Contributor Author

@davehimself any thoughts on best practices for out-of-the-box metrics?

@ryan-mars
Copy link
Owner

Should X-Ray be part of this?

@sam-goodwin
Copy link
Contributor Author

Should X-Ray be part of this?

Good point, we should definitely leverage X-Ray. I don't have personal experience with X-Ray so will have to look into it.

@davehimself
Copy link

X-Ray should. From an ops perspective, tracing is the primary methodology for monitoring microservices and/or distributed architectures. Second to that, error rates and variances in "expected" $probe over $time (e.g., I/O writes per second).

I can envision such characteristics being captured during event storming.

@ryan-mars
Copy link
Owner

ryan-mars commented Jul 7, 2021

I can envision such characteristics being captured during event storming.

@davehimself What kinds of characteristics should be captured during event storming? Are you referring to business metrics or ops metrics?

@sam-goodwin sam-goodwin self-assigned this Jul 13, 2021
@sam-goodwin sam-goodwin added the aws-serverless Related to serverless applications on AWS label Jul 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
aws-serverless Related to serverless applications on AWS
Projects
None yet
Development

No branches or pull requests

3 participants