sorry ,copy the text info.
[root@kihan_rmq_prod_cloud_4 ~]#rabbitmq-plugins enable rabbitmq_prometheus
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
Enabling plugins on node rabbit@kihan_rmq_prod_cloud_4:
rabbitmq_prometheus
The following plugins have been configured:
rabbitmq_management
rabbitmq_management_agent
rabbitmq_prometheus
rabbitmq_web_dispatch
Applying plugin configuration to rabbit@kihan_rmq_prod_cloud_4...
Unable to update config for app rabbit from a .conf file: The app is already running.
The following plugins have been enabled:
rabbitmq_prometheus
started 1 plugins.
* About to connect() to localhost port 15692 (#0)
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 15692 (#0)
> GET /metrics HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:15692
> Accept:text/plain
>
< HTTP/1.1 500 Internal Server Error
< content-length: 0
<
* Connection #0 to host localhost left intact
[root@kihan_rmq_prod_cloud_4 ~]#cat /var/log/rabbitmq/log/crash.log
2020-05-20 11:34:47 =CRASH REPORT====
crasher:
initial call: cowboy_stream_h:request_process/3
pid: <0.29611.1>
registered_name: []
exception error: bad argument
ancestors: [<0.29610.1>,<0.27980.1>,<0.27979.1>,rabbit_web_dispatch_sup,<0.716.0>]
message_queue_len: 0
messages: []
links: [#Port<0.7967>,<0.29610.1>]
dictionary: []
trap_exit: false
status: running
heap_size: 75113
stack_size: 28
reductions: 3596312
neighbours:
2020-05-20 11:34:47 =ERROR REPORT====
Ranch listener rabbit_web_dispatch_sup_15692, connection process <0.29610.1>, stream 1 had its request process <0.29611.1> exit with reason badarg and stacktrace []
[root@kihan_rmq_prod_cloud_4 ~]#rabbitmqctl report
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
Reporting server status of node rabbit@kihan_rmq_prod_cloud_4 ...
Status of node rabbit@kihan_rmq_prod_cloud_4 ...
Data directory
Node data directory: /var/lib/rabbitmq/mnesia/rabbit@kihan_rmq_prod_cloud_4
Config files
* /etc/rabbitmq/rabbitmq.conf
Log file(s)
* /var/log/rabbitmq/rabbitXkihan_rmq_prod_cloud_4.log
* /var/log/rabbitmq/rabbitXkihan_rmq_prod_cloud_4_upgrade.log
Alarms
(none)
Memory
Calculation strategy: rss
Memory high watermark setting: 0.4 of available memory, computed to: 12.8849 gb
allocated_unused: 0.044 gb (32.38 %)
other_proc: 0.0297 gb (21.87 %)
other_system: 0.0272 gb (20.0 %)
code: 0.0272 gb (19.98 %)
other_ets: 0.0033 gb (2.43 %)
plugins: 0.0016 gb (1.19 %)
atom: 0.0014 gb (1.01 %)
binary: 0.0004 gb (0.3 %)
mgmt_db: 0.0004 gb (0.3 %)
metrics: 0.0002 gb (0.16 %)
connection_other: 0.0002 gb (0.12 %)
mnesia: 0.0001 gb (0.11 %)
msg_index: 0.0001 gb (0.07 %)
connection_readers: 0.0001 gb (0.04 %)
quorum_ets: 0.0 gb (0.03 %)
connection_channels: 0.0 gb (0.01 %)
connection_writers: 0.0 gb (0.0 %)
queue_procs: 0.0 gb (0.0 %)
queue_slave_procs: 0.0 gb (0.0 %)
quorum_queue_procs: 0.0 gb (0.0 %)
reserved_unallocated: 0.0 gb (0.0 %)
File Descriptors
Total: 8, limit: 204703
Sockets: 2, limit: 184230
Free Disk Space
Low free disk space watermark: 0.05 gb
Free disk space: 322.1166 gb
Totals
Connection count: 2
Queue count: 3
Virtual host count: 3
Listeners
Interface: [::], port: 25672, protocol: clustering, purpose: inter-node and CLI tool communication
Interface: [::], port: 5672, protocol: amqp, purpose: AMQP 0-9-1 and AMQP 1.0
Interface: [::], port: 15672, protocol: http, purpose: HTTP API
Interface: [::], port: 15692, protocol: http/prometheus, purpose: Prometheus exporter API over HTTP
在 2020年5月20日星期三 UTC+8上午11:43:25,Liangping Ren写道: