早上好!
我在尝试从librato获取单个数字以在html页面中使用时遇到了麻烦。
我只想获得指标AWS.Billing.EstimatedCharges.total的最后一个值,即使用该值的客户的名称,并将其放在一个HTML页面中(很简单,但对我来说不是这样)
我正在尝试使用这个https://github.com/goodeggs/librato-node接口,但是我仍然不知道如何解决这个问题。
附言:我不能使用嵌入图表。
var http = require('http');
http.createServer(function (req, res) { }).listen(1337, "127.0.0.1");
console.log('Server running at 127.0.0.1:1337/');
var librato = require('librato-node');
api = librato.configure({email: 'myemail', token: 'mytoken'});
librato.start(); process.once('SIGINT', function() { librato.stop();
// stop optionally takes a callback });
// Don't forget to specify an error handler, otherwise errors will be thrown
librato.on('error', function(err) { console.error(err); });https://stackoverflow.com/questions/41221835
复制相似问题