Monitoring Node

Totalcloud Updated by Totalcloud

What is Monitoring Node?

Monitoring node fetches Cloudwatch metrics data from AWS. This node is similar to Add-ons in a Resource node. It helps enrich the resources data with Cloudwatch metrics data. You can use these enriched Cloudwatch metrics data in successor nodes (like Filter node, Notification node, or Reports node) to selectively retain the resources required.

Examples:

  • Generate report of EC2 instances' CPU utilization everyday
  • Generate report of Lambda function invocations every 15 minutes

The Resource node must always precede Monitor node. Note that the attributes you input must be the same as the resource selected in the Resource node.

For Example: If you select service as EC2 and resource as Instance in Resource node, the attributes in Monitoring node must be AWS/EC2.

Working with Monitor Node

To define a Monitor node in a workflow, follow the below steps:

  1. On the Workflows page, click Create New Workflow.
  2. Click Select a workflow template or Create workflow from scratch.
  3. If you create a new workflow:
    1. Click ton the plus symbol
    1. Select Monitoring from the options
    2. Click on the 'Edit' option in the Monitoring node to access the parameters input window.
  4. If you pick an existing template:
    1. Click on the 'Edit' option in the Monitoring node to access the parameters input window.
  5. Enter the required information in the parameters input window.

  1. Click on 'Save'

Output

Monitoring node enriches the resources data with Cloudwatch metrics data.

For example: Selecting EC2 Instances in Resource node and CPU Utilization in Monitor node enriches the EC2 instances' data with corresponding CPU Utilization data. With this, we have the data for further use. Following is a sample output when you select the Monitor node:

[
{
"AmiLaunchIndex":0,
"ImageId":"ami-0a313d6XX8716f372",
"InstanceId":"i-0cf6fc1c056038c13",
"InstanceType":"t2.micro",
"KeyName":"JenkinsNV",
"LaunchTime":"2019-06-24T00:00:08.000Z",
"Monitoring":{
"State":"enabled"
},
,,,,,

"addOns":{
"MetricData":{
"data":[
{
"Id":"i2df7e301",
"Label":"CPUUtilization",
"Timestamps":[
"2019-06-14T13:17:00.000Z",

"2019-06-14T07:17:00.000Z",

"2019-06-14T01:17:00.000Z",
],

"Values":[

1.7272727272727275,

0.08517810892011693,

3.276899876810672,

],

"StatusCode":"Complete",

]
}
]
}
}
}
]

Click here to look at the actual JSON output

Upon successful execution of this node, the Monitor node collects all the corresponding metric data that can be further used for:

  • Filtering metric data to take further action on specific resources.
  • Generating a report (using Report node as the successor) to keep the team/peer(s) informed.
  • Generating a message (using Notification node as the successor) to update the team/peer(s) about critical metric data that needs immediate attention.

Usage Examples:

For your convenience, we have populated several usage examples on how to use this node and how to set their parameters.

How did we do?

Usage Examples of Monitoring Node

Contact