So there's 2 issues here:
1) your reporter configuration is wrong, configuration values for a specific reporter are prefixed with "metrics.reporter", not "metrics.reporters" (note the "s"). See below for a correct config.

metrics.reporters: varuy
metrics.reporter.varuy.host: tracing115
metrics.reporter.varuy.port: 2003
metrics.reporter.varuy.class: org.apache.flink.metrics.graphite.GraphiteReporter
metrics.reporter.varuy.interval: 1 SECONDS
metrics.reporter.varuy.protocol: TCP

2) The reporter only exports data to an external graphite server, so yes you have to start that one separately.

On 27.09.2018 08:13, varuy322 wrote:
Hi Till,

I have copy the flink-metrics-graphite-1.5.2.jar to lib/, and restart
flink.It seems make no difference.
When I checked the jobmanager log, the metrics configured in
flink-conf.yaml, could be load since it printed as below:

"2018-09-27 09:50:23,953 INFO
org.apache.flink.configuration.GlobalConfiguration            - Loading
configuration property: metrics.reporters, varuy
2018-09-27 09:50:23,953 INFO
org.apache.flink.configuration.GlobalConfiguration            - Loading
configuration property: metrics.reporters.varuy.host, tracing115
2018-09-27 09:50:23,953 INFO
org.apache.flink.configuration.GlobalConfiguration            - Loading
configuration property: metrics.reporters.varuy.port, 2003
2018-09-27 09:50:23,953 INFO
org.apache.flink.configuration.GlobalConfiguration            - Loading
configuration property: metrics.reporters.varuy.class,
org.apache.flink.metrics.graphite.GraphiteReporter
2018-09-27 09:50:23,954 INFO
org.apache.flink.configuration.GlobalConfiguration            - Loading
configuration property: metrics.reporters.varuy.interval, 1 SECONDS
2018-09-27 09:50:23,954 INFO
org.apache.flink.configuration.GlobalConfiguration            - Loading
configuration property: metrics.reporters.varuy.protocol, TCP"

However, I found the GraphiteReporter do not run correctly for the info
list:

"2018-09-27 09:50:24,938 INFO
org.apache.flink.runtime.metrics.MetricRegistryImpl           - No metrics
reporter configured, no metrics will be exposed/reported."

Should I install Graphite Server independently?

Best Regards & Thanks

Rui,Wang


-----
stay hungry, stay foolish.
--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/


Reply via email to