[
https://issues.apache.org/jira/browse/HDDS-3035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aravindan Vijayan resolved HDDS-3035.
-------------------------------------
Resolution: Fixed
Thank you for working on this [~swagle]. I have merged the PR.
> Add ability to enable Ratis metrics in OzoneManager
> ---------------------------------------------------
>
> Key: HDDS-3035
> URL: https://issues.apache.org/jira/browse/HDDS-3035
> Project: Hadoop Distributed Data Store
> Issue Type: Bug
> Components: Ozone Manager
> Affects Versions: 0.5.0
> Reporter: Aravindan Vijayan
> Assignee: Siddharth Wagle
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.5.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Whenever OM uses Ratis, we may need the ability to collect its metrics
> through OM JMX. This should be a straightforward change, similar to
> org.apache.hadoop.ozone.HddsDatanodeService#start().
> {code}
> public void start() {
> //All the Ratis metrics (registered from now) will be published via JMX
> and
> //via the prometheus exporter (used by the /prom servlet
> MetricRegistries.global()
> .addReporterRegistration(MetricsReporting.jmxReporter());
> MetricRegistries.global().addReporterRegistration(
> registry -> CollectorRegistry.defaultRegistry.register(
> new RatisDropwizardExports(
> registry.getDropWizardMetricRegistry())));
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]