ianshward / cloudwatch-librato Goto Github PK
View Code? Open in Web Editor NEWREPO MOVED TO https://github.com/mapbox/cloudwatch-librato
Home Page: https://github.com/mapbox/cloudwatch-librato
REPO MOVED TO https://github.com/mapbox/cloudwatch-librato
Home Page: https://github.com/mapbox/cloudwatch-librato
Hi there,
Surely this is something I am doing wrong, or a result of my inexperience with node, but I can't seem to get this daemon to startup. Forgive me if this is not the best place to post, I could not locate other means of contacting you
root@master:/home/ubuntu/cloudwatch-librato# node ./index.js --config settings.json
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'step'
at Function._resolveFilename (module.js:332:11)
at Function._load (module.js:279:25)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object. (/home/ubuntu/cloudwatch-librato/index.js:4:12)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Array.0 (module.js:479:10)
root@master:/home/ubuntu/cloudwatch-librato# uname -a
Linux omitted 3.2.0-31-virtual #50-Ubuntu SMP Fri Sep 7 16:36:36 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
root@master:/home/ubuntu/cloudwatch-librato# which node
/usr/local/bin/node
root@master:~# node --version
v0.6.17
I've tried installing from apt and also from source, and both produce the same error when i run it.
It seems node does work if i start the sample application from their website:
root@master:# cat server.js# node server.js
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
root@master:
Server running at http://127.0.0.1:1337/
^Croot@master:~#
root@master:/home/ubuntu/cloudwatch-librato# ls
bin index.js lib package.json README.md settings.example.json settings.json
root@master:/home/ubuntu/cloudwatch-librato# cat settings.json
{
"awskey": "OMITTED",
"awssecret":OMITTED",
"libratoemail": "OMITTED",
"libratotoken": "OMITTED",
"instanceNameTag": "Name",
"metrics": [
{
"MetricName": "RequestCount",
"Namespace": "AWS/ELB",
"Unit": "Count",
"Period": 60,
"Statistic": "Sum",
"Dimensions": {
"us-west-2": [
["LoadBalancerName", "OMITTED", "OR_DEV_ELB"],
],
}
},
{
"MetricName": "HTTPCode_Backend_5XX",
"Namespace": "AWS/ELB",
"Unit": "Count",
"Period": 60,
"Statistic": "Sum",
"Dimensions": {
"us-west-2": [
["LoadBalancerName", "OMITTED", "OR_DEV_ELB"],
],
}
},
{
"MetricName": "Latency",
"Namespace": "AWS/ELB",
"Unit": "Count",
"Period": 60,
"Statistic": "Sum",
"Dimensions": {
"us-west-2": [
["LoadBalancerName", "OMITTED", "OR_DEV_ELB"],
],
}
},
{
"MetricName": "CPUUtilization",
"Namespace": "AWS/EC2",
"Unit": "Percent",
"Period": 60,
"Statistic": "Average",
"Dimensions": {
"us-west-2": "_callback",
}
},
{
"MetricName": "MemoryPercentUsed",
"Namespace": "System/Linux",
"Unit": "Percent",
"Period": 60,
"Statistic": "Average",
"Dimensions": {
"us-west-2": "_callback",
}
},
{
"MetricName": "NetworkOut",
"Namespace": "AWS/EC2",
"Unit": "Bytes",
"Period": 300,
"Statistic": "Average",
"Dimensions": {
"us-west-2": "_callback",
}
},
{
"MetricName": "LoadAverageMinute",
"Namespace": "System/Linux",
"Unit": "Count",
"Period": 60,
"Statistic": "Average",
"Dimensions": {
"us-west-2": "_callback",
}
}
]
}
I appreciate any help/advice as this looks like a really fun integration.
Cheers,
iain
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.