AWS Cost Explorer
Helps you visualize, understand, and manage your AWS costs and usage with daily or monthly granularity. You can view data up to the last 13 months, which helps you see patterns in spending.
A responsive system or application means that distributed components respond in a timely manner even under a heavy load. To meet this requirement, special attention must be paid to “latency”.
The solution is for each separate log file for each service to be consolidated in a central service that will provide a complete log of the whole application.
Metrics that can be monitored for an application include:
Amazon CloudWatch is an AWS service metrics and logs repository with the following capabilities:
You can use Amazon CloudWatch Logs to monitor, store, and access your log files from Amazon EC2 instances, AWS CloudTrail, Route 53, and other AWS services. An AWS service such as Amazon EC2 puts metrics into the repository, and you retrieve statistics based on those metrics.
Statistics are metric data aggregations over specified periods of time. Metrics are stored separately in Regions, but you can use CloudWatch cross-Region functionality to aggregate statistics from different Regions.
An alarm watches a single metric over a specified time period and performs one or more specified actions based on the value of the metric relative to a threshold over time.
When you create an alarm to monitor a specific metric, you have extensive control over how CloudWatch makes that comparison:
The metrics are stored in the metrics repository in a namespace container. Metrics in different namespaces are isolated from each other so that metrics from different applications are not mistakenly aggregated into the same statistics.
AWS/service
AWS/EC2
namespaceA metric is a time-ordered set of data points with a unit of measurement such as bytes, seconds, count, and percentage. You can think of a metric as a variable to monitor, and the data points as representing the values of that variable over time.
You can optionally configure a metric dimension. A dimension is a name and value pair specifying a metric characteristic.
InstanceId
as a dimension name, and the actual instance ID as the value for that dimensionCloudWatch dashboards are customizable home pages in the CloudWatch console that you can use to monitor your resources in a single view, even those resources that are spread across different Regions.
When CloudWatch alarms are breached, the event needs to be published so that automated or manual correction actions can be implemented. Amazon EventBridge is an event bus used to route events.
EventBridge is a serverless service that uses events to connect application components together, helping you to build scalable event-driven applications:
An event bus is a router that receives events and delivers them to zero or more destinations, or targets. Use an event bus when you need to route events from many sources to many targets with optional transformation of events prior to delivery to a target.
Rules receive incoming events and send them as appropriate to targets for processing:
AWS provides monitoring and reporting tools for cost management:
AWS Cost Explorer
Helps you visualize, understand, and manage your AWS costs and usage with daily or monthly granularity. You can view data up to the last 13 months, which helps you see patterns in spending.
AWS Budgets
Helps you set custom budgets that alert you when your costs or usage exceeds (or are forecasted to exceed) your budgeted amount.
AWS Cost and Usage Report
Contains the most comprehensive set of AWS cost and usage data available, including additional metadata about AWS services, pricing, and reservations.
CloudWatch alarms can send notifications to Amazon EC2 Auto Scaling and SNS topics. CloudWatch collects logs and metrics from AWS services across Regions, and you can use CloudWatch dashboards to visualize metrics and alarms. EventBridge processes and routes events with an event bus or a pipe, while AWS cost monitoring tools help you understand and manage your AWS infrastructure costs.