Github user zentol commented on the issue: https://github.com/apache/flink/pull/2517 Currently, when a metric is registered the reporter also receives the group it was registered on as an argument. Since this group is shared by all reporters we can't do any tricks in them to be reporter specific. Instead, we could create a single reporter specific AbstractMetricGroup that is aware of the reporter index, which contains a AbstractMetricGroup reference. All calls to methods are forwarded to the reference, with the index being supplied when necessary. This reference is set when a metric is registered. Does that make sense?
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---