【问题标题】:How to get entire json report using camel metrics如何使用骆驼指标获取整个 json 报告
【发布时间】:2015-07-28 05:48:33
【问题描述】:

我在下面的 camel-context.xml 文件中进行了配置。 我能够看到在 hawtio 中很好地呈现的报告。

但是,我希望将实际骆驼指标生成的 json 报告记录到我的应用程序日志文件中。

谁能帮我解决这个问题?

谢谢 拉梅什

【问题讨论】:

    标签: apache-camel codahale-metrics


    【解决方案1】:

    这是不可能的。

    这是在服务器端返回 json 的代码:https://github.com/apache/camel/blob/master/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/routepolicy/MetricsRegistryService.java

    这将需要增强以支持将 json 记录到记录器。欢迎您登录 JIRA 票证:http://camel.apache.org/support

    【讨论】:

    • 感谢克劳斯,我想获得有关 p999、m1_rate 等各种因素在生成的 json 报告中的确切含义的文档此外,我们如何才能使跨越时间与各种报告的指标数据保持一致跨度>
    • 了解 dropwizards 指标这些值的含义 - dropwizard.github.io/metrics/3.1.0/getting-started
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-14
    相关资源
    最近更新 更多