是要生成不同类型的metric吗 比如counter meter ?
| | JasonLee | | 邮箱:[email protected] | Signature is customized by Netease Mail Master 在2020年07月02日 15:34,[email protected] 写道: 官网上的例子: public class MyMapper extends RichMapFunction<String, String> { private transient Counter counter; @Override public void open(Configuration config) { this.counter = getRuntimeContext() .getMetricGroup() .counter("myCounter"); } @Override public String map(String value) throws Exception { this.counter.inc(); return value; } } 我想要根据 map 方法中传入的参数生成不同的 监控指标,怎样可以实现呢? 谢谢, 王磊 [email protected]
