Amazon CloudWatch Metrics
This solution creates a new custom Amazon CloudWatch metric (InstanceScheduler:
). Each time the AWS Lambda function runs, it updates the metric data for each applicable
instance and then applies the appropriate start or stop action. This data includes
the name of the schedule, the number of instances associated with that schedule, and
the number of running instances.
<stackname>
View Instance Scheduler Metrics
-
In the AWS Management Console, open the Amazon CloudWatch console.
-
In the Custom Namespaces drop-down field, choose
InstanceScheduler:
.<stackname>
-
Select the schedule and service dimensions.
-
Select the schedule and service that you want to view the status of.
At the bottom of the page, an individual graph will appear for each instance you selected,
as shown in the following example. Note that a value of 0
is a stopped instance and a value of 1.00
is a running instance.
