Github user ex00 commented on the issue:
    Could you explain me how must look API for getting metric identifier?
    Now I think  about this:
    public void testConfigurableDelimiterForReporter() {
                Configuration config = new Configuration();
                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, 
                MetricRegistry registry = new MetricRegistry(config);
                TaskManagerMetricGroup tmGroup = new 
TaskManagerMetricGroup(registry, "host", "id");
tmGroup.getMetricIdentifier("name")); //get default delimiter for all
tmGroup.getMetricIdentifier("name",null,1)); //get delimiter for first reporter 
in list

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 or file a JIRA ticket
with INFRA.

Reply via email to