Github user zentol commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2220#discussion_r70095846
  
    --- Diff: 
flink-core/src/main/java/org/apache/flink/metrics/reporter/AbstractReporter.java
 ---
    @@ -84,4 +84,24 @@ public void notifyOfRemovedMetric(Metric metric, String 
metricName, AbstractMetr
        protected String replaceInvalidChars(String metricName) {
                return metricName;
        }
    +
    +   /**
    +    * Method which constructs the fully qualified metric name from the 
metric group and the metric
    +    * name.
    +    *
    +    * @param metricName Name of the metric
    +    * @param group Associated metric group
    +    * @return Fully qualified metric name
    +    */
    +   private String constructMetricName(String metricName, 
AbstractMetricGroup group) {
    +           StringBuilder builder = new StringBuilder();
    +
    +           for (String componentName : group.getScopeComponents()) {
    +                   
builder.append(replaceInvalidChars(componentName)).append(".");
    +           }
    +
    +           builder.append(replaceInvalidChars(metricName));
    --- End diff --
    
    the call to replaceInvalidChars is not required; metric names can only 
contain alphanumeric characters. I don't think any reporter will not support 
these.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to