Using Site24x7's IT automation framework, you can create an action profile to stop or start your analytics application. You can set up to automatically trigger the automation by mapping it with a threshold or an alert event type (Up, Down and Trouble), or you can call the APIs directly by manually invoking the action from the Site24x7 console.
Please make sure the IAM role assumed by Site24x7 or the IAM user created for Site24x7 has the following partial write actions in the attached policy document to perform the actions.
Before mapping the action profile, you can test it's functionality by invoking the action manually within the Site24x7 console or by using our REST APIs. Once you've created the profile, navigate back to the IT Automation summary page (Admin > IT Automation) and click on the to execute a test run.
To execute the automation, map the action profile to an desired alert event. You can either map the profile to a predefined monitor level event type (Up/Down/trouble) or to an custom attribute level event type(Number of records read drops below 10).
Navigate to the Edit monitor page of the monitored analytics application (“Kinesis Analytics monitor list page" > Application > > Edit) , and map the action profile with any of the following monitor status changes.
You can also associate the action profile to a related performance metric like bytes read/records read or to the metric data points of kinesis data stream or firehose delivery stream. Navigate to the Edit threshold profile page of the monitored analytics application (Navigate to the Edit Monitor page of the resource > click on the Pencil icon adjacent to the Threshold and Availability field) and map the profile to any desired attribute by clicking on the "Select Automation to Execute" field.
For an analytics application you are charged hourly based on the average number of consumed Kinesis Processing Units (KPUs). To keep you costs in check you can create a mapping in such a way that, whenever the number of outgoing records on your source stream drops below a certain value an automated action to stop your application is triggered.
Site24x7 is a service by Corp.