Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-4146. Show the ScmId and ClusterId in the scm web ui. #1350

Merged
merged 1 commit into from Aug 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -66,4 +66,8 @@ public interface SCMMXBean extends ServiceRuntimeInfo {
Map<String, Integer> getContainerStateCount();

Map<String, String> getRuleStatusMetrics();

String getScmId();

String getClusterId();
}
Expand Up @@ -1141,4 +1141,12 @@ public Map<String, String> getRuleStatusMetrics() {
public PipelineChoosePolicy getPipelineChoosePolicy() {
return this.pipelineChoosePolicy;
}

public String getScmId() {
return getScmStorageConfig().getScmId();
}

public String getClusterId() {
return getScmStorageConfig().getClusterID();
}
}
Expand Up @@ -14,6 +14,20 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<h2>SCM Information</h2>
<table class="table table-bordered table-striped">
<tbody>
<tr>
<td>Scm Id:</td>
<td>{{$ctrl.overview.jmx.ScmId}}</td>
</tr>
<tr>
<td>Cluster Id:</td>
<td>{{$ctrl.overview.jmx.ClusterId}}</td>
</tr>
</tbody>
</table>

<h2>Node counts</h2>

<table class="table table-bordered table-striped" class="col-md-6">
Expand Down