Skip to content

Commit

Permalink
Register RemoteRegionRegistry with the servo monitors
Browse files Browse the repository at this point in the history
Without this, it won't collect the metrics.  The annotation alone isn't enough
  • Loading branch information
jamesmulcahy committed Sep 29, 2020
1 parent 3e19252 commit 2607f30
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ public void run() {
remoteRegionFetchTask
),
serverConfig.getRemoteRegionRegistryFetchInterval(), TimeUnit.SECONDS);

try {
Monitors.registerObject(this);
} catch (Throwable e) {
logger.warn("Cannot register the JMX monitor for the RemoteRegionRegistry :", e);
}
}

/**
Expand Down

0 comments on commit 2607f30

Please sign in to comment.