Github user ex00 commented on the issue:
https://github.com/apache/flink/pull/2517
Could you explain me how must look API for getting metric identifier?
Now I think about this:
```java
@Test
public void testConfigurableDelimiterForReporter() {
Configuration config = new Configuration();
config.setString(ConfigConstants.METRICS_REPORTERS_LIST,
"test1");
config.setString(ConfigConstants.METRICS_SCOPE_DELIMITER, ".");
config.setString(ConfigConstants.METRICS_REPORTER_PREFIX +
"test1." + ConfigConstants.METRICS_REPORTER_SCOPE_DELIMITER, "_");
config.setString(ConfigConstants.METRICS_REPORTER_PREFIX +
"test1." + ConfigConstants.METRICS_REPORTER_CLASS_SUFFIX,
TestReporter.class.getName());
config.setString(ConfigConstants.METRICS_SCOPE_NAMING_TM,
"A.B.C.D.E");
MetricRegistry registry = new MetricRegistry(config);
TaskManagerMetricGroup tmGroup = new
TaskManagerMetricGroup(registry, "host", "id");
assertEquals("A.B.C.D.E.name",
tmGroup.getMetricIdentifier("name")); //get default delimiter for all
assertEquals("A_B_C_D_E_name",
tmGroup.getMetricIdentifier("name",null,1)); //get delimiter for first reporter
in list
registry.shutdown();
}
```
---
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.
---