Monito_Autom
Cloud Watch
Amazon CloudWatch collects and visualizes real-time logs, metrics, and event data in automated dashboards to streamline your infrastructure and application maintenance.
- Collect, access and analyze your AWS data using powerful visualization tools.
- Seamlessly integrate with many AWS services for simplified monitoring and scalability.
Cloudwatch Features
CloudWatch can also be the centralized place for logs to be stored and analyzed, using Amazon CloudWatch Logs.
CloudWatch Logs can monitor, store, and access your log files from applications running on Amazon EC2 instances, AWS Lambda functions, and other sources.
- Each metric in CloudWatch has a timestamp and is organized into containers called namespaces.
- Metrics in different namespaces are isolated from each other – you can think of them as belonging to different categories.
- Can have custom metrics by programmatically sending the metric to CloudWatch using the PutMetricData API.
Cloudwatch Dashboards are customizable home pages that you use for data visualization for one or more metrics through the use of widgets, such as a graph or text.
To automatically initiate actions based on sustained state changes of your metrics. You configure when alarms are triggered and the action that is performed.
Actions can be an Amazon EC2 action, an automatic scaling action or a notification sent to Amazon SNS
- Alarm states: OK / ALARM / INSUFFICIENT_DATA.
- Alarm can be triggered when it transitions from one state to another.
Metric Retention
CloudWatch retains metric data as follows:
* Data points with a period of less than 60 seconds are available for 3 hours..
* Data points with a period of 60 seconds (1 minute) are available for 15 days
* Data points with a period of 300 seconds (5 minutes) are available for 63 days
* Data points with a period of 3,600 seconds (1 hour) are available for 455 days (15 months)
Note: The longer CloudWatch data is stored, the less information is available, due to aggregation of those data points.
See other monitoring options for Aws Lambda function
Automation
CloudFormation
CloudFormation allows you to provsion resources quiclky and consistently and manage them throughout their lifecycles by treating infrastructure as code.
It is a declarative programming language, supporting either JSON or YAML formatting.
Elastic Beanstalk
Elastic Beanstalk is a PaaS, an easy-to-use all-in-one service for deploying and scaling web applications and services developed various languages: Java, .NET, Node.js...
Beanstalk automatically manages the services needed to host and scale your application.
Migrate your application by uploading your source code bundle to Elastic Beanstalk using the management console or command line interface.
Elastic Beanstalk returns a URL for your new web app and automatically handles the deployment details(provisioning, load balancing, auto scaling and application health monitoring).
It is not serverless. Beanstalk creates and manages EC2 architecture.
System Manager
System Manager is a suite of tools to let you view, control and automate both your AWS architecture and on-premises resources.
It gives you the ability to easily patch, update, manage and configure your EC2 instances along with on-premise architecure.
Some features:
- Session Manager : remotely connect and interact with your resources.
- Patch Manager : manages your applications versions.
- Run Command : execute commands on your instances.
- Parameter Store : securely store secret values.
- Automation Documents : can be used to control instances or AWS resources.