Github user zentol commented on the issue:
https://github.com/apache/flink/pull/3736
If you want to enforce a specific scope config then i would suggest to
instead ignore the configured one (which means not using
`MetricGroup#getMetricIdentifier()`) and instead extracting the variables you
want from `MetricGroup#getAllVariables()`. The JMXReporter does this as well
and is one example of a reporter that completely ignores scope formats. It
builds a series key-value pairs containing the variables for every metric, not
unlike this reporter.
You should be able to support Meters, as the DCounter works with Numbers.
Only exporting the rate is perfectly reasonable. You don't necessarily have to
ignore Histograms; you can instead create a number of DCounters for every
property that is extracted from the HistogramStatistics; it's a bit more work
but doable imo.
Instead of storing the actual value in the DMetric why not store the Flink
metric instead? When `DMetric#getPoints()` is called you could retrieve the
value form the metric, you wouldn't have to update anything manually.
---
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.
---