Github user klopfdreh commented on the pull request:
https://github.com/apache/wicket/pull/164#issuecomment-196058123
Ticket is created: https://issues.apache.org/jira/browse/WICKET-6120
I choose this way of API because it actually not able to configure metrics
from start (if available in the class path), because AspectJ is started before
the init method is executed. But you can deactivate the JMX functionality and
the measurement with meta data keys:
```java
WicketMetricsSettings settings =
Application.get().getMetaData(WicketMetrics.METRIC_SETTINGS);
settings.startJmxReporter();
settings.stopJmxReporter();
settings.setEnable(bool);
```
---
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.
---