![]() |
VOOZH | about |
The CData Excel Add-In for RabbitMQ provides formulas that can query RabbitMQ data. The following three steps show how you can automate the following task: Search RabbitMQ data for a user-specified value and then organize the results into an Excel spreadsheet.
The syntax of the CDATAQUERY formula is the following:
=CDATAQUERY(Query, [Connection], [Parameters], [ResultLocation]);
This formula requires three inputs:
Connection: Either the connection name, such as APIConnection1, or a connection string. The connection string consists of the required properties for connecting to RabbitMQ data, separated by semicolons.
RabbitMQ is an open-source message broker that supports multiple messaging protocols. The RabbitMQ Management HTTP API provides HTTP-based access to management and monitoring data for a RabbitMQ server. The API exposes information about virtual hosts, exchanges, queues, bindings, connections, channels, consumers, users, permissions, policies, and cluster-wide statistics.
The Management plugin must be enabled on the RabbitMQ server for the HTTP API to be available. By default, the management interface listens on port 15672.
RabbitMQ Management HTTP API uses HTTP Basic authentication. You must supply the username and password of a RabbitMQ management user.
To enable access to the management API:
After configuring your RabbitMQ server, set the following connection properties to connect:
Profile=C:\profiles\RabbitMQ.apip;AuthScheme=Basic;URL=http://localhost:15672;User=guest;Password=guest;
The RabbitMQ profile provides access to the following tables:
The procedure below results in a spreadsheet that organizes all the formula inputs in the first column.
=CDATAQUERY("SELECT * FROM AuthAttempts WHERE NodeName = '"&B6&"'","Profile="&B1&";AuthScheme="&B2&";URL="&B3&";User="&B4&";Password="&B5&";Provider=API",B7)
👁 Formula inputs used in this example. (Google Apps is shown.)Connect to live data from RabbitMQ with the API Driver
Connect to RabbitMQ