Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Interface for RabbitMQ Management statistics. http://www.rabbitmq.com/management.html
You will need:
npm install amqp-stats
Require the amqp-stats package:
var AMQPStats = require('amqp-stats');
Instantiate and provide authentication details (defaults to standard setup for a local instance).
var stats = new AMQPStats({
username: "AMQP_USERNAME", // default: guest
password: "AMQP_PASSWORD", // default: guest
hostname: "AMQP_HOSTNAME", // default: localhost:55672
protocol: "HTTP_OR_HTTPS" // default: http
});
NOTE: for RabbitMQ instances running on heroku, the hostname should look something like:
heroku.srs.rabbitmq.com/rabbitmq/sdaewywqh
From there you can use the stats instance to get data about your system's usage:
stats.overview(function(err, res, data){
if (err) { throw err; }
console.log('data: ', data);
});
This will return a list of your queues with lots of data about their rate of use, total messages sent, etc:
stats.queues(callback);
Note that when you lack admin privileges (on heroku instances for example) you may not be able to get at certain parts of this API. You can check your status with:
stats.whoami(callback);
FAQs
Interface for RabbitMQ Management statistics. http://www.rabbitmq.com/management.html
The npm package amqp-stats receives a total of 70 weekly downloads. As such, amqp-stats popularity was classified as not popular.
We found that amqp-stats demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.