This library, `http-rabbitmq-manager`, is a Node.js client designed to interact with the RabbitMQ HTTP API. As of version 0.0.4, with its last commit over seven years ago, the package is considered abandoned and no longer actively maintained. It provides a programmatic interface for management and monitoring tasks such as retrieving cluster overview, listing nodes, connections, channels, consumers, and exchanges, and setting cluster definitions. A significant limitation is its official support for only RabbitMQ 3.x, while the current stable RabbitMQ version is 4.2.5. This means it may not be compatible with newer RabbitMQ installations or features. The library's functionality relies heavily on the RabbitMQ Management UI plugin being installed and enabled on the RabbitMQ server. The API uses traditional Node.js callback patterns for asynchronous operations, which differs from modern Promise-based or `async/await` paradigms. For current RabbitMQ monitoring, official documentation now recommends tools like Prometheus and Grafana over direct HTTP API scraping for long-term data collection.
npm install http-rabbitmq-managerVerified import paths — ran on the pinned version, not inferred.
Instantiate the client and demonstrate fetching basic RabbitMQ cluster information (overview, nodes, connections) using callbacks.
Consider using a more current RabbitMQ client library or interacting directly with the HTTP API if you are on newer RabbitMQ versions. Evaluate `rabbitmq-management-client` (Rust, but indicates features of modern clients) or `pulumi/rabbitmq` (Pulumi provider) for alternatives, or other generic HTTP clients.
Use with extreme caution. For production environments, consider alternative, actively maintained RabbitMQ clients or management tools.
Ensure the RabbitMQ Management UI plugin is enabled on your RabbitMQ server. Typically, this can be done via `rabbitmq-plugins enable rabbitmq_management`. Verify the default port (15672) is accessible.
Wrap callback-based functions in Promises using `util.promisify` for better integration into modern `async/await` codebases, or consider using a different, actively maintained client library that offers Promise support.
Integrate dedicated monitoring solutions like Prometheus and Grafana for robust RabbitMQ metric collection and analysis in production environments.
Use `const client = require('http-rabbitmq-manager').client({ /* config */ });` to correctly access the client factory.Verify RabbitMQ server status and ensure the `rabbitmq_management` plugin is enabled. Check that the configured `host` and `port` (default 15672) match your RabbitMQ management interface.
Double-check the username and password for a user with management permissions in your RabbitMQ instance.
Ensure the client is properly instantiated: `const client = require('http-rabbitmq-manager').client({ /* config */ });`.Increase the `timeout` option in the client configuration if your network or RabbitMQ server response times are consistently high. Investigate RabbitMQ server performance if timeouts persist.
No dependency data recorded yet.