CloudWatch metrics client. Generates metrics and submits them as custom metrics to CloudWatch.
npm install weatherman
Include weatherman, assign a config object to it and pass an interval in seconds to weatherman.start().
var wm = require('weatherman');
wm.config({
namespace: "SW/ServiceName",
plugins: {
plugin_name: {
config_key: "config_value"
}
}
});
wm.start(60);
wm.stop();
If a namespace is not defined in the plugin-specific configuration, the globally-defined namespace is used.
Load, free memory and uptime stats
- No configuration
Rabbit queue statistics - metadata, phantom and celery.
- rabbit_url: the Rabbit queue API URL to connect to
- rabbit_auth: username and password for Rabbit access in a list
Current exfm listening statistics.
- listening_url: listening URL to grab stats from
Nurse integration - system info and server statistics.
- nurse_url: URL to grab info from, usually localhost:port/health-check
- nurse_stats: list of statistics to grab, see nurse docs
- nurse_mem_stats: list of memory statistics to grab, see nurse docs
- nurse_load_stats: list of load statistics to grab, see nurse docs
- nurse_server_stats: list of server statistics to grab, see nurse docs