cloudwatchd
v0.4.0
Published
A CloudWatch metric collection daemon
Downloads
19
Readme
cloudwatchd
A CloudWatch metric collection daemon.
Configuration
Add the following basic configuration information to the StatsD configuration file.
{
debug: true,
dumpMessages: true,
region: 'us-west-2',
accessKeyId: 'ABC',
secretAccessKey: 'XYZ123',
period: 60,
metrics: [{
"Namespace": "AWS/EC2",
"MetricName": "CPUUtilization",
"Statistic": "Average",
"Unit": "Percent",
"Dimensions": [{ "Name": "InstanceId", "Value": "i-abc123" }]
}],
backends: ['./backends/syslog'],
syslog: {
facility: 'local0',
transport: 'unix',
vars: {
'Environment': 'test',
},
}
}
region
is requiredperiod
defaults to 60 and must be a multiple of 60metrics
is an array of strings that match the JSON params described in the AWS CloudWatch JavaScript SDKaccessKeyId
andsecretAccessKey
values are required unlessAWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
are available as environment variables- the process is running on an EC2 instance configured with an instance-profile with permissions to read statistics from CloudWatch.
Additionally, check out the puppet module: dylanmei/puppet-cloudwatchd