ChengKai Yang created FLINK-25830:
-------------------------------------

             Summary:  Typo mistake in "Metric Report page" of the documentation
                 Key: FLINK-25830
                 URL: https://issues.apache.org/jira/browse/FLINK-25830
             Project: Flink
          Issue Type: Improvement
          Components: Documentation
            Reporter: ChengKai Yang


Hi, I think I find a typo mistake in the documentation:

[This page:"Report 
page"|https://nightlies.apache.org/flink/flink-docs-release-1.14/docs/deployment/metric_reporters/#reporter]
 .

In the YAML part:
{code:java}
```yaml
metrics.reporters: my_jmx_reporter,my_other_reporter

metrics.reporter.my_jmx_reporter.factory.class: 
org.apache.flink.metrics.jmx.JMXReporterFactory
metrics.reporter.my_jmx_reporter.port: 9020-9040
metrics.reporter.my_jmx_reporter.scope.variables.excludes:job_id;task_attempt_num
metrics.reporter.my_jmx_reporter.scope.variables.additional: 
cluster_name:my_test_cluster,tag_name:tag_value

metrics.reporter.my_other_reporter.class: 
org.apache.flink.metrics.graphite.GraphiteReporter
metrics.reporter.my_other_reporter.host: 192.168.1.1
metrics.reporter.my_other_reporter.port: 10000
```
{code}
This property: 
metrics.reporter.my_jmx_reporter.scope.variables.excludes:job_id;task_attempt_num

If the user copies this property to the conf/flink-conf.yaml, the user will get 
a warning in the log like this:
{code:java}
// code placeholder
2022-01-26 22:45:31,642 WARN  
org.apache.flink.configuration.GlobalConfiguration           [] - Error while 
trying to split key and value in configuration file 
/opt/module/flink-1.14.2/conf/flink-conf.yaml:277: 
"metrics.reporter.my_jmx_reporter.scope.variables.excludes:job_id;task_attempt_num"
 {code}
So there should have a space between 
"metrics.reporter.my_jmx_reporter.scope.variables.excludes:" and 
"job_id;task_attempt_num".

 

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to