Vertx Metrics 监控可视化记录

简介

    Vertx结合Dropwizard Metrics对服务的各项指标提供度量监控,因参考文章编写详细,本文对实践Metrics 监控可视化记录html

参考资料

    官方资料:

      https://vertx.io/docs/vertx-dropwizard-metrics/java/java

    实践资料:

      https://my.oschina.net/chkui/blog/707632git

      http://jiangew.me/vertx-in-action/#vertx-%E8%BF%90%E8%A1%8C%E6%97%B6%E6%80%A7%E8%83%BD%E6%8C%87%E6%A0%87%E7%9B%91%E6%8E%A7dropwizard--jolokia--hawtiogithub

      https://blog.csdn.net/ifrozen/article/details/53161413 (参考文章json

组件版本

vertx-dropwizard-metrics 3.8.2app

jolokia-jvm-1.6.2-agent      https://jolokia.org/download.htmleclipse

hawtio-app-2.7.1.jar           https://github.com/hawtio/hawtio/releasesjvm

差别配置

    实践参考文章,不一样点在于版本,另外是经过eclipse配置VM arguments启动,在hawtio不能看到vertx JMX监控项ui

    配置VM arguments以下:spa

-Dvertx.metrics.options.jmxDomain=vertx 
-Dvertx.metrics.options.enabled=true 
-Dvertx.metrics.options.jmxEnabled=true

   修改成代码配置,可正常显示,配置以下:

vertx = Vertx.vertx(new VertxOptions().setMetricsOptions(
			    new DropwizardMetricsOptions()
		        .setEnabled(true)
		        .setJmxEnabled(true)
		        .setJmxDomain("vertx-metrics")));
相关文章
相关标签/搜索