mladjan-gadzic opened a new pull request, #4521:
URL: https://github.com/apache/ozone/pull/4521
## What changes were proposed in this pull request?
Add SCM HA metrics to `/jmx` and `/prom` endpoints.
```
{
"name": "Hadoop:service=StorageContainerManager,name=SCMHAMetrics",
"modelerType": "SCMHAMetrics",
"tag.NodeId": "3c8c82f5-524a-41f4-beea-8dcd868fbf91",
"tag.Hostname": "bca1fb37b8aa",
"SCMHALeaderState": 1
}
```
```
# TYPE scmha_metrics_scmha_leader_state gauge
scmha_metrics_scmha_leader_state{nodeid="3c8c82f5-524a-41f4-beea-8dcd868fbf91",hostname="bca1fb37b8aa"}
1
```
Similar PR: https://github.com/apache/ozone/pull/4140.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8363
## How was this patch tested?
- unit
- integration
- manual
Steps for manual test:
- start Docker cluster for HA environment `ozone-ha` and wait for it to be
ready
- check if SCM HA metrics are initialized correctly
- stop SCM leader node and wait for new leader to be elected
- check if SCM HA metrics are updated correctly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]