Sample JSON Output Showing Monitoring Data

Updated 4 days ago by Totalcloud

The following JSON output shows enriched data of EC2 instances with corresponding CPU utilization data.

[

{

"AmiLaunchIndex":0,

"ImageId":"ami-0a313d6098716f372",

"InstanceId":"i-0cf6fc1c056038c13",

"InstanceType":"t2.micro",

"KeyName":"JenkinsNV",

"LaunchTime":"2019-06-24T00:00:08.000Z",

"Monitoring":{

"State":"disabled"

},

"Placement":{

"AvailabilityZone":"us-east-1d",

"GroupName":"",

"Tenancy":"default"

},

"PrivateDnsName":"ip-172-31-50-182.ec2.internal",

"PrivateIpAddress":"172.31.50.182",

"ProductCodes":[

],

"PublicDnsName":"ec2-54-210-238-14.compute-1.amazonaws.com",

"PublicIpAddress":"54.210.238.14",

"State":{

"Code":16,

"Name":"running"

},

"StateTransitionReason":"",

"SubnetId":"subnet-73322659",

"VpcId":"vpc-d0dea2b7",

"Architecture":"x86_64",

"BlockDeviceMappings":[

{

"DeviceName":"/dev/sda1",

"Ebs":{

"AttachTime":"2019-04-08T03:34:34.000Z",

"DeleteOnTermination":true,

"Status":"attached",

"VolumeId":"vol-0bc49a5417b57d51c"

}

}

],

"ClientToken":"",

"EbsOptimized":false,

"EnaSupport":true,

"Hypervisor":"xen",

"ElasticGpuAssociations":[

],

"ElasticInferenceAcceleratorAssociations":[

],

"NetworkInterfaces":[

{

"Association":{

"IpOwnerId":"amazon",

"PublicDnsName":"ec2-54-210-238-14.compute-1.amazonaws.com",

"PublicIp":"54.210.238.14"

},

"Attachment":{

"AttachTime":"2019-04-08T03:34:33.000Z",

"AttachmentId":"eni-attach-05e76ff924d7be58d",

"DeleteOnTermination":true,

"DeviceIndex":0,

"Status":"attached"

},

"Description":"",

"Groups":[

{

"GroupName":"internal-service",

"GroupId":"sg-04d7b34d3d796d503"

}

],

"Ipv6Addresses":[

],

"MacAddress":"12:2f:04:79:d3:60",

"NetworkInterfaceId":"eni-0f8be01c02fb2f168",

"OwnerId":"833539367270",

"PrivateDnsName":"ip-172-31-50-182.ec2.internal",

"PrivateIpAddress":"172.31.50.182",

"PrivateIpAddresses":[

{

"Association":{

"IpOwnerId":"amazon",

"PublicDnsName":"ec2-54-210-238-14.compute-1.amazonaws.com",

"PublicIp":"54.210.238.14"

},

"Primary":true,

"PrivateDnsName":"ip-172-31-50-182.ec2.internal",

"PrivateIpAddress":"172.31.50.182"

}

],

"SourceDestCheck":true,

"Status":"in-use",

"SubnetId":"subnet-73322659",

"VpcId":"vpc-d0dea2b7",

"InterfaceType":"interface"

}

],

"RootDeviceName":"/dev/sda1",

"RootDeviceType":"ebs",

"SecurityGroups":[

{

"GroupName":"internal-service",

"GroupId":"sg-04d7b34d3d796d503"

}

],

"SourceDestCheck":true,

"Tags":[

{

"Key":"environment",

"Value":"development"

},

{

"Key":"Name",

"Value":"test"

}

],

"VirtualizationType":"hvm",

"CpuOptions":{

"CoreCount":1,

"ThreadsPerCore":1

},

"CapacityReservationSpecification":{

"CapacityReservationPreference":"open"

},

"HibernationOptions":{

"Configured":false

},

"Licenses":[

],

"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",

"2019-06-13T19:17:00.000Z",

"2019-06-13T13:17:00.000Z",

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

"2019-06-13T01:17:00.000Z",

"2019-06-12T07:17:00.000Z"

],

"Values":[

1.7272727272727275,

0.08517810892011693,

3.276899876810672,

0.010066220040884997,

0.008874907270230067,

0.07265134786821208,

0.03333950788799367,

0

],

"StatusCode":"Complete",

"Messages":[

]

}

]

}

}

}

]



How did we do?