RabbitMQ消息可靠性保证机制7--可靠性分析-rabbitmq_tracing插件
rabbitmq_tracing插件rabbitmq_tracing插件相称于Firehose的GUI版本,它同样能跟踪RabbitMQ中消息的注入流出情况。rabbitmq_tracing插件同样会对流入流出的消息进行封装,然后将封装后的消息日记存入相应的trace文件中。
# 开启插件
rabbitmq-plugins enable rabbitmq_tracing
# 关闭插件
rabbitmq-plugins disable rabbitmq_tracing
代码使用之前Firehose的代码.
起首开启插件
# rabbitmq-plugins disable rabbitmq_tracing
Disabling plugins on node rabbit@nullnull-os:
rabbitmq_tracing
The following plugins have been configured:
rabbitmq_management
rabbitmq_management_agent
rabbitmq_web_dispatch
Applying plugin configuration to rabbit@nullnull-os...
The following plugins have been disabled:
rabbitmq_tracing
stopped 1 plugins.
# rabbitmq-plugins list
Listing plugins with pattern ".*" ...
Configured: E = explicitly enabled; e = implicitly enabled
| Status: * = running on rabbit@nullnull-os
|/
[] rabbitmq_amqp1_0 3.8.5
[] rabbitmq_auth_backend_cache 3.8.5
[] rabbitmq_auth_backend_http 3.8.5
[] rabbitmq_auth_backend_ldap 3.8.5
[] rabbitmq_auth_backend_oauth2 3.8.5
[] rabbitmq_auth_mechanism_ssl 3.8.5
[] rabbitmq_consistent_hash_exchange 3.8.5
[] rabbitmq_event_exchange 3.8.5
[] rabbitmq_federation 3.8.5
[] rabbitmq_federation_management 3.8.5
[] rabbitmq_jms_topic_exchange 3.8.5
rabbitmq_management 3.8.5
rabbitmq_management_agent 3.8.5
[] rabbitmq_mqtt 3.8.5
[] rabbitmq_peer_discovery_aws 3.8.5
[] rabbitmq_peer_discovery_common 3.8.5
[] rabbitmq_peer_discovery_consul 3.8.5
[] rabbitmq_peer_discovery_etcd 3.8.5
[] rabbitmq_peer_discovery_k8s 3.8.5
[] rabbitmq_prometheus 3.8.5
[] rabbitmq_random_exchange 3.8.5
[] rabbitmq_recent_history_exchange3.8.5
[] rabbitmq_sharding 3.8.5
[] rabbitmq_shovel 3.8.5
[] rabbitmq_shovel_management 3.8.5
[] rabbitmq_stomp 3.8.5
[] rabbitmq_top 3.8.5
rabbitmq_tracing 3.8.5
[] rabbitmq_trust_store 3.8.5
rabbitmq_web_dispatch 3.8.5
[] rabbitmq_web_mqtt 3.8.5
[] rabbitmq_web_mqtt_examples 3.8.5
[] rabbitmq_web_stomp 3.8.5
[] rabbitmq_web_stomp_examples 3.8.5
#
至网页端
https://i-blog.csdnimg.cn/direct/69962ef5217747db82ef926b222c1f8a.png#pic_center
填充跟踪信息
name表现rabbitmq_tracing的一个条目的名称,
format可以选择text大概JSON
毗连用户名和暗码,按创建的用户名管暗码,这里填充:root/123456
pattern: 发布的消息: publish.
pattern: 消耗的消息: deliver.
https://i-blog.csdnimg.cn/direct/fa9fe9e06ffd4ae3a91d46606e12cb58.png#pic_center
分别添加生产者的追溯和消耗都的追溯,然后分别运行生产者和消耗者。
https://i-blog.csdnimg.cn/direct/621ef4823a234fa7a5bac2d5f45c88c9.png#pic_center
text格式的文件信息:
https://i-blog.csdnimg.cn/direct/a665a52b561641dc8f3d36e5fc047bca.png#pic_center
json格式数据:
https://i-blog.csdnimg.cn/direct/614a2be4754148adbfef080cbdc40384.png#pic_center
在这里还在两个队列:
https://i-blog.csdnimg.cn/direct/4c982aedf70c49899b0ff6fde3721179.png#pic_center
这两个暂时队列,在追溯停止后,也将不存在了。这就是网页端的追溯,相对于Firehose使用起来也更简单。可以直接通过网页端进行查看。
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页:
[1]