
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
statful-collector-aws
Advanced tools
Staful Collector AWS built in NodeJS. This is intended to collect metrics from AWS CloudWatch and send them to Statful.
Statful Collector AWS Version | Tested NodeJS versions |
---|---|
1.1.x | 4 |
1.2.x | 6.9.2 , 10.9.0 and Stable |
$ npm install -g statful-collector-aws
After installing Statful Collector AWS you are ready to use it. The quickest way is to do the following:
$ statful-collector-aws generate-config /etc/statful-collector-aws/conf/
# Update some info in the statful-collector-aws-conf.json: accessKeyId, secretAccessKey and the statful api token
$ statful-collector-aws start /etc/statful-collector-aws/conf/statful-collector-aws-conf.json
You can find here some useful usage examples of the Statful Collector AWS. In the following examples are assumed you have already installed the collector globally and followed the Quick Start.
{
"statfulCollectorAws": {
... ,
"period": 60,
"statistics": ["SampleCount", "Average", "Sum", "Minimum", "Maximum"],
"metricsList": {
"type": "white",
"metricsPerRegion": {
"us-west-2": [
{
"Namespace": "AWS/ELB"
},
{
"Namespace": "AWS/AutoScaling",
"MetricName": "GroupMinSize"
},
{
"Namespace": "AWS/AutoScaling",
"MetricName": "GroupMaxSize"
},
{
"Namespace": "AWS/AutoScaling",
"MetricName": "GroupStandbyInstances"
}
]
}
},
...
},
...
}
{
"statfulCollectorAws": {
... ,
"period": 60,
"statistics": ["SampleCount", "Average", "Sum", "Minimum", "Maximum"],
"metricsList": {
"type": "white",
"metricsPerRegion": {
"us-west-2": [
{
"Namespace": "AWS/ELB"
},
{
"Namespace": "AWS/Billing",
"MetricName": "EstimatedCharges",
"Dimensions": [
{
"Name": "ServiceName",
"Value": "Service1"
},
{
"Name": "ServiceName",
"Value": "Service12"
},
{
"Name": "Currency",
"Value": "USD"
},
{
"Name": "Currency",
"Value": "EUR"
}
]
}
]
}
},
...
},
...
}
{
"statfulCollectorAws": {
... ,
"period": 300,
"statistics": ["SampleCount", "Average", "Sum", "Minimum", "Maximum"],
"metricsList": {
"type": "white",
"metricsPerRegion": {
"eu-central-1": [
{
"Namespace": "AWS/Billing"
}
],
"us-west-1": [
{
"Namespace": "AWS/Billing"
}
],
"us-west-2": [
{
"Namespace": "AWS/Billing"
}
]
}
},
...
},
...
}
Detailed reference if you want to take full advantage from Statful Collector AWS.
$ statful-collector-aws generate-config <path>
Creates a default configuration at the given path. If the given path doesn't exists, it will be created.
$ statful-collector-aws start <path>
Starts the collector with the config on given path.
$ statful-collector-aws start-managed <path>
Starts the collector managed by pm2 with the config on given path.
$ statful-collector-aws stop-managed
Stops the collector managed by pm2.
$ statful-collector-aws restart-managed
Restarts the collector managed by pm2.
$ statful-collector-aws help
Shows a small help for the collector.
In the configuration file you can find 3 main sections: statfulCollectorAws
, bunyan
, statfulClient
.
StatfulCollectorAWS
Option | Description | Type | Default | Required |
---|---|---|---|---|
credentials | Defines the credentials to access AWS. | object | none | YES |
period | Defines the global output level in seconds. Valid Periods: 60, 120, 180, 300 | number | 60 | YES |
statistics | Define the statistcs for which data should be collected. Valid Statistics: SampleCount, Average, Sum, Minimum, Maximum | array | ["SampleCount", "Average", "Sum", "Minimum", "Maximum"] | YES |
metricsList | Defines metrics to collect from AWS. Here you should only configure the metricsPerRegion which is an object organized by AWS region. Inside each region you should set a list of metrics object to collect. Each metric object supports a Namespace , MetricName and Dimensions .Please check the AWS documentation (AWS Metric Reference and Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference) and the Examples section to get more information about the metrics object. | object | none | YES |
signals | Defines the proccess signals for which collector should be stopped. Any valid NodeJS signal can be added. | array | ["SIGTERM", "SIGINT", "SIGABRT", "SIGUSR2"] | YES |
Bunyan
Option | Description | Type | Default | Required |
---|---|---|---|---|
name | Defines the logger name. | string | none | YES |
level | Defines the global output level. | string | none | NO |
streams | Define the logger streams. By default, when the value is an empty array, logger will output to proccess.stdout . | array | [] | YES |
NOTE: We had only documented some bunyan config fields here but you can set all the supported configs by Bunyan.
To get more information please read the Bunyan documentation.
StatfulClient
To get help and information about this specific client please read the Statful Client NodeJS documentation.
Statful Collector AWS is available under the MIT license. See the LICENSE file for more information.
FAQs
AWS Cloudwatch collector for Statful
We found that statful-collector-aws demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.