219.8. Metric type histogram

metrics:histogram:metricname[?options]

219.8.1. 选项

Namedefault描述

value

-

在直方图中使用的值

如果没有设置任何 ,则会向直方图添加任何内容,并且会记录警告。

// adds value 9923 to simple.histogram
from("direct:in")
    .to("metric:histogram:simple.histogram?value=9923")
    .to("direct:out");
// nothing is added to simple.histogram; warning is logged
from("direct:in")
    .to("metric:histogram:simple.histogram")
    .to("direct:out");