现在问题是我业务代码中添加的统计指标,部分被prometheus拿到了,部分拿不到。
当前比如有个 latenessInMillisGauge 是可以拿到的,在flink中用guage实现的。 但是我用的Counter类的都没被监测到。 比如:timeAheadDroppedCounter = getRuntimeContext().getLongCounter( "timeAheadDroppedCounter"); 这种就没被找到。 Xiao Xu <[email protected]> 于2020年8月28日周五 下午2:40写道: > accumulator 是聚合后的指标, metics 里是底层的指标, 据我所知没有办法打到监控里面 > > Yun Tang <[email protected]> 于2020年8月28日周五 下午2:37写道: > > > Hi > > > > 没有名为 accumulator 的metrics类型数据,目前只有Counters, Gauges, Histograms 和 Meters > > [1] 这四种,如果你想要用累积型metrics,可以考虑counters > > > > [1] > > > https://ci.apache.org/projects/flink/flink-docs-stable/monitoring/metrics.html#metric-types > > > > 祝好 > > 唐云 > > > > ________________________________ > > From: 赵一旦 <[email protected]> > > Sent: Friday, August 28, 2020 10:53 > > To: [email protected] <[email protected]> > > Subject: Re: flink prometheus 无法上报accumulator类型监控吗 > > > > hi,有人回答下这个问题吗。 > > > > 赵一旦 <[email protected]> 于2020年8月21日周五 下午4:20写道: > > > > > 如题,没找到accumulator类型数据,metric之类找到了,但是accumulator类没找到。 > > > > > >
