We have JMX registry in Micrometer.
Questions:
- Are there any performance considerations associated with the calculations of these attributes: FifteenMinuteRate, FiveMinuteRate, MeanRate and OneMinuteRate?
- How can we remove them except for Count? (Just to make sure there will be no performace overhead)
Here is a sample of our code:
JmxMeterRegistry meterRegistry = new JmxMeterRegistry(MyJmxConfig.DEFAULT, Clock.SYSTEM);
meterRegistry.counter(name, tags).increment(amount);
interface MyJmxConfig extends JmxConfig {
MyJmxConfig DEFAULT = k -> null;
@Override
default String domain() {
return "com.example.platform.metrics.test";
}
}

Micrometer's
JmxMeterRegistryuses Dropwizard'sJmxReporterthat creates these values.JmxMeterRegistryhas a ctor that enables you to specify your ownJmxReporterandJmxReporterseems to have a capability to specifyspecificRateUnits, I think if you pass an emptyMap, it should not produce the rates above.