![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
juttle-aws-adapter
Advanced tools
AWS adapter for the Juttle data flow language.
The AWS adapter is a Juttle frontend to various AWS APIs, returning the results of those API calls as Juttle points. You can use those points to perform detailed analysis of your AWS Infrastructure.
Additionally, the AWS adapter is packaged with a module that summarizes the raw API results, creating aggregate and demographic summary information from the raw points.
The adapter must be configured with an IAM Keypair to access the customer's AWS information and be given the region in which the customer's AWS products are located.
The adapter supports the following AWS Products:
By default, the adapter returns the raw json results of the AWS API calls for each product's "list items" function (e.g. EC2.describeInstances
, ELB.describeLoadBalancers
, etc) as Juttle points. The adapter also monitors the active set of items (EC2 Instances, etc) for each product and emits events when the items change. For example, when a new EC2 instance is added, a "EC2 instance added" event is generated. Also, when anything related to a given item is changed, a "... changed" event is generated.
The aws
module packaged with the adapter exports several subgraphs that can be included in Juttle programs to automatically summarize the raw points returned from the AWS API calls. Each product has an aggregate_all_<product>()
subgraph that summarizes points associated with each product. Additionally, there is an aggregate_all
subgraph that summarizes for all products.
The subgraphs summarize the raw points into the following categories.
The full set of metrics and events are described here.
The AWS Adapter is very closely related to the Juttle Cloudwatch Adapter. The AWS adapter fetches current information about the demographics, capabilities, and configuration of a user's AWS resources and applications. The Cloudwatch adapter fetches historical monitoring information for the specific items in a user's AWS infrastructure.
read aws product='EC2'
| Adapter.aws.aggregate_EC2
| filter demographic='EC2 Instance Type'
| keep demographic, name, value
| view table
┌───────────────┬──────────┬──────────────────────────┐
│ name │ value │ demographic │
├───────────────┼──────────┼──────────────────────────┤
│ m3.medium │ 39 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ m1.small │ 5 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ m3.large │ 5 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ m1.medium │ 2 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ t1.micro │ 4 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ c3.xlarge │ 1 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ t2.micro │ 3 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ c3.8xlarge │ 1 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ m4.4xlarge │ 1 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ m3.2xlarge │ 2 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ c3.large │ 1 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ c4.2xlarge │ 1 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ m3.xlarge │ 1 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ t2.small │ 1 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ t2.medium │ 1 │ EC2 Instance Type │
└─────────────────────────────────────────────────────┘
Like Juttle itself, the adapter is installed as a npm package. Both Juttle and the adapter need to be installed side-by-side:
$ npm install juttle
$ npm install juttle-aws-adapter
Configuration involves these steps:
.juttle/config.js
This page provides a good introduction to IAM access keys and how to obtain them for your amazon account.
The key must have read-only access for the products for which you want to obtain metrics and events. The following default policies are sufficient:
.juttle/config.js
Add a config block like this to .juttle/config.js
:
{
"adapters": {
"aws": {
access_key: "--YOUR-ACCESS-KEY-HERE--",
secret_key: "--YOUR-SECRET-KEY-HERE--",
region: "--YOUR-REGION-HERE--"
}
}
}
Region is a region like us-west-2
.
Read command line format and examples:
read [(product filter) [OR (product filter)]...]
read product="EC2" // Return all metrics and events for all EC2 instances
read product="EC2" OR product="EBS" // Return all metrics and events for the set of EC2 instances and EBS volumes
The aws adapter only reads current live information, and as a result does not support a timerange in the past. The frequency at which the adapter polls AWS can be controlled via the -every
option and the stop time can be controlled via the -to
options.
The filtering expression consists of any number of product or item filters, combined with OR
.
A product filter has the format product="<aws product>"
, where <aws product>
is one of the following:
EC2
EBS
ELB
RDS
CloudFront
AutoScaling
ElastiCache
Lambda
The returned data will consist of Raw Points or Aggregate Metric/Demographic Metrics for the specified products.
With no filter expression at all, the returned data will consist of all metrics and events for all supported products.
Want to contribute? Awesome! Don’t hesitate to file an issue or open a pull request.
FAQs
Juttle adapter for AWS (Amazon Web Services)
We found that juttle-aws-adapter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.