You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-zh@flink.apache.org by xiao cai <fl...@163.com> on 2020/10/12 10:17:56 UTC

如何为每个flink任务分别设置metrics的reporter

Hi:
已知的设置metrics reporter的方式是在conf/flink-conf.yaml中,如果想要为每个任务分别设置不同的metrics reporter或者设置不同的参数,比如设置prometheus pushgateway的多个自定义的k=v,该如何设置呢?


Best xiao.

Re: 如何为每个flink任务分别设置metrics的reporter

Posted by caozhen <ca...@163.com>.
可以试下这个方式能不能生效:在启动每个作业时,通过-D k=v 参数来设置这个作业的metrics。


-------

xiao cai wrote
> Hi:
> 已知的设置metrics reporter的方式是在conf/flink-conf.yaml中,如果想要为每个任务分别设置不同的metrics
> reporter或者设置不同的参数,比如设置prometheus pushgateway的多个自定义的k=v,该如何设置呢?
> 
> 
> Best xiao.





--
Sent from: http://apache-flink.147419.n8.nabble.com/

回复:如何为每个flink任务分别设置metrics的reporter

Posted by 熊云昆 <xi...@163.com>.
每个job启动时候单独读取配置就可以了吧




| |
熊云昆
|
|
邮箱:xiongyunkun@163.com
|

签名由 网易邮箱大师 定制

在2020年10月12日 18:17,xiao cai 写道:
Hi:
已知的设置metrics reporter的方式是在conf/flink-conf.yaml中,如果想要为每个任务分别设置不同的metrics reporter或者设置不同的参数,比如设置prometheus pushgateway的多个自定义的k=v,该如何设置呢?


Best xiao.

Re: 如何为每个flink任务分别设置metrics的reporter

Posted by 王 小宝 <wa...@hotmail.com>.
我这边是为每个流任务单独指定了一个配置文件目录 不知道可否达到你的需求

发自我的iPhone

> 在 2020年10月12日,18:18,xiao cai <fl...@163.com> 写道:
> 
> Hi:
> 已知的设置metrics reporter的方式是在conf/flink-conf.yaml中,如果想要为每个任务分别设置不同的metrics reporter或者设置不同的参数,比如设置prometheus pushgateway的多个自定义的k=v,该如何设置呢?
> 
> 
> Best xiao.