1

おはようございます!

libratoHTMLページで使用する単一の数値を取得しようとすると問題が発生します。

metric の最後の値、AWS.Billing.EstimatedCharges.totalその値を費やしたクライアントの名前を取得し、すべてを HTML ページにまとめたいだけです (単純ですが、私にはそうではありません)。

この API https://github.com/goodeggs/librato-nodeを使用しようとしています が、この問題を解決する方法がまだわかりません。

ps: 埋め込みグラフを使用できません。

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); });
4

1 に答える 1