Comments (5)
Partially addressed by #90.
from rabbitmq-cli.
Further addressed by #115.
from rabbitmq-cli.
FWIW the core of multi-format support is there. We are not 100% happy with the state of things at the moment but there's only so much time left in the 3.7.0
cycle. Considering this closed with further improvements we have in mind.
from rabbitmq-cli.
So how about this now..
from rabbitmq-cli.
@visbits if there's a question, consider asking on the mailing list.
Some commands support --formatter=json
, possibly even --formatter=csv
. It doesn't make sense for all commands and in some cases the output could be formatted much better. We've concluded that we want to support multiple formatters better but there's a fair amount of command-specific work and we have close to 100 commands now. So the degree of support varies and for some commands, only one formatter is supported by design.
Here are some examples with 3.7.13
:
rabbitmqctl list_vhosts --formatter=json | jq
[
{
"name": "/"
}
]
rabbitmqctl list_users --formatter=json | jq
[
{
"user": "guest",
"tags": [
"administrator"
]
}
]
rabbitmqctl list_parameters --formatter=json | jq
[
{
"component": "federation-upstream",
"name": "up-hare",
"value": "{\"expires\":3600000,\"uri\":\"amqp://localhost:5673\"}"
}
]
rabbitmqctl list_queues --formatter=json | jq
[
{
"name": "q1",
"messages": 0
},
{
"name": "amq.gen-IdssHRoMD4umuqnuHCGdaQ",
"messages": 0
}
]
rabbitmqctl list_consumers --formatter=json | jq
[
{
"queue_name": "amq.gen-IdssHRoMD4umuqnuHCGdaQ",
"channel_pid": "#PID<10132.853.0>",
"consumer_tag": "bunny-1552068127000-449053712679",
"ack_required": false,
"prefetch_count": 0,
"arguments": []
}
]
rabbitmq-diagnostics listeners --formatter=json | jq
{
"listeners": [
{
"interface": "[::]",
"node": "rabbit@warp10",
"port": 25672,
"protocol": "clustering",
"purpose": "inter-node and CLI tool communication"
},
{
"interface": "[::]",
"node": "rabbit@warp10",
"port": 5672,
"protocol": "amqp",
"purpose": "AMQP 0-9-1 and AMQP 1.0"
},
{
"interface": "[::]",
"node": "rabbit@warp10",
"port": 5671,
"protocol": "amqp/ssl",
"purpose": "AMQP 0-9-1 and AMQP 1.0 over TLS"
},
{
"interface": "[::]",
"node": "rabbit@warp10",
"port": 15672,
"protocol": "http",
"purpose": "HTTP API"
},
{
"interface": "[::]",
"node": "rabbit@warp10",
"port": 15671,
"protocol": "https",
"purpose": "HTTP API over TLS (HTTPS)"
},
{
"interface": "[::]",
"node": "rabbit@warp10",
"port": 1883,
"protocol": "mqtt",
"purpose": "MQTT"
}
],
"result": "ok"
}
rabbitmq-diagnostics alarms --formatter=json | jq
{
"alarms": [],
"node": "rabbit@warp10",
"result": "ok"
}
from rabbitmq-cli.
Related Issues (20)
- Output of the set_parameter command can be misleading HOT 2
- Erlang formatter not working as expected HOT 1
- rabbitmqctl list_unresponsive_queues errors with quorum queues
- Initial pre-shutdown health checks HOT 3
- Option parsing considers values starting with "-" (minus) to be shortcut option lists HOT 16
- formatter for some CLI commands in rabbitmq-diagnostics is creating an UndefinedError HOT 3
- CLI command rabbitmq-diagnostics status can't parse watermark HOT 2
- CLI will not pick up commands from implicitly enabled plugins HOT 5
- rabbitmqctl list_unresponsive_queues logged and error and returned exit code of 0 HOT 2
- Commands that wait for safe replica state of quorum and classic queues to use before node shutdown HOT 7
- Can extended environment variables be taken into account by CLI tools?
- Introduce a command that lists available network interfaces (NICs)
- Visibly deprecate 'rabbitmq-diagnostics node_health_check'
- Make rabbitmq-diagnostics check_if_node_is_mirror_sync_critical special case single node clusters
- CLI definition export incorrectly serialises federation upstreams HOT 2
- Provide a way to evaluate a file with code HOT 5
- Turn auto-completion into a first class command
- RABBITMQ_ERLANG_COOKIE environment variable takes precedence over .erlang.cookie file HOT 1
- Add `--all` to `rabbitmqctl enable_feature_flag` HOT 2
- rename_cluster_node command is broken. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rabbitmq-cli.