Cloud

Write an awesome doc for cloud and how to deploy our apps using technologies like AWS, GitHub actions, CI/CD and Docker. Also a very comprehensive documentation around AWS.

View on GitHub

CloudWatch

Glossary

Name Description Side notes
Namespaces A container for CloudWatch metrics. Isolated from each other (To prevent aggregating different apps' statistics in one place) .
Metrics A time-ordered set of data about the performance of your systems.
  • Region specific.
  • By default gathered every 5 minutes.
  • Expires , rather than being deletable.
  • Delete data older than 15 month as new data comes in.
  • Either specify timestamps or CloudWatch will create it for you.
  • NO memory utilization and disk space usage metrics by default for EC2 instances.
Dimensions A key/value pair that uniquely identifies a metric. Whenever you add a unique dimension to one of your metrics, you are creating a new variation of that metric.
Statistics Aggregated data over specified periods of time.
  • Specify a unit of measure are aggregated separately.
  • Can specify a unit when you create a custom metric
  • A period is the length of time associated with a specific CloudWatch statistic.
  • Statistics are aggregated according to the period length that we specify.

Learn more

Some important metrics

Service Metrics
EC2 instances CPU Utilization.
Status Checks.
Network.
EBS Volumes Disk read/write.
S3 Buckets BucketSizeBytes.
NumberOfObjects.
AllRequests.
API usage CloudWatch
Lambda.
S3.

But we can also create our own metrics.

CloudWatch alarms

CloudWatch logs

How CloudWatch logs can collect logs from different sources with its agent

Footnotes

  1. For this to work we need proper IAM role.