Viewing cluster information by using REST Monitoring APIs
System administrators can view cluster monitoring statistics by using REST Monitoring APIs.
System administrators can view information about cluster members by using REST Monitoring API, or by using the Amlen WebUI. For more information about using the Amlen WebUI to view cluster information, see Viewing cluster information by using the GUI.
When you use the REST Monitoring API to view clustering monitoring statistics, the information is returned as an array of entries where each entry represents the status of a remote cluster member and the messages that are sent to and received from that remote cluster member.
http://<admin-endpoint-IP:Port>/ima/v1/monitor/Cluster
-
- Cluster
- Array
-
- ServerName
- String
-
- ServerUID
- String
-
- Status
- String
-
- StatusTime
- Date/Time
-
- Health
- String
-
- Memory
- Numeric
-
- HAStatus
- String
-
- RetainedSync
- Boolean
-
- Reconnect
- Numeric
-
- ReadMsgs
- Numeric
-
- ReadBytes
- Numeric
-
- WriteMsgs
- Numeric
-
- WriteBytes
- Numeric
-
- ReadMsgRate
- Numeric
-
- Unreliable
- Queue object
-
- Reliable
- Queue object
-
- BufferedMsgs
- Numeric
-
- BufferedMsgsHWM
- Numeric
-
- BufferedBytes
- Numeric
-
- MaxBytes
- Numeric
-
- SentMsgs
- Numeric
-
- MsgSendRate
- Numeric
-
- DiscardedMsgs
- The number of messages that were discarded because the buffered data limit was reached. Refer to the value that is displayed in the MaxBytes field.
-
- ExpiredMsgs
- Numeric
-
- Suspend
- Numeric
The following example uses cURL to show how a GET method is used to create the most recent statistics about cluster members in a cluster that comprises 3 cluster members. The REST API GET method is used on cluster member server01.example.com
. The information that is returned shows the status of cluster members server02.example.com
and server03.example.com
and also information about the flow of messages between server01.example.com
and the 2 other cluster members.
curl -X GET http://127.0.0.1:9089/ima/v1/monitor/Cluster
The following example shows a successful example response to the GET method that was used in the previous example. In this example, there is no active messaging traffic; consequently, the values for the rates are zero.
{
"Version": "v1",
"Cluster": [
{
"ServerName": "server02.example.com",
"ServerUID": "L8QUhQJZ",
"Status": "Active",
"StatusTime": "2015-12-09T15:54:52Z",
"Health": "Green",
"Memory": 0,
"HAStatus": "None",
"RetainedSync": true,
"Reconnect": 4,
"ReadMsg": 1048,
"ReadBytes": 51836,
"WriteMsg": 929,
"WriteBytes": 46084,
"ReadMsgRate": 0,
"Reliable": {
"BufferedMsgs": 0,
"BufferedMsgsHWM": 16,
"BufferedBytes": 0,
"MaxBytes": 0,
"SentMsgs": 357,
"MsgSendRate": 0,
"DiscardedMsgs": 0,
"ExpiredMsgs": 0,
"Suspend": 0
},
"Unreliable": {
"BufferedMsgs": 0,
"BufferedMsgsHWM": 1,
"BufferedBytes": 0,
"MaxBytes": 0,
"SentMsgs": 567,
"MsgSendRate": 0,
"DiscardedMsgs": 0,
"ExpiredMsgs": 0,
"Suspend": 0
}
},
{
"ServerName": "server03.example.com",
"ServerUID": "e5xZvtVd",
"Status": "Active",
"StatusTime": "2015-12-09T15:54:56Z",
"Health": "Green",
"Memory": 0,
"HAStatus": "None",
"RetainedSync": true,
"Reconnect": 4,
"ReadMsg": 1569,
"ReadBytes": 94550,
"WriteMsg": 2056,
"WriteBytes": 101198,
"ReadMsgRate": 0,
"Reliable": {
"BufferedMsgs": 0,
"BufferedMsgsHWM": 15,
"BufferedBytes": 0,
"MaxBytes": 0,
"SentMsgs": 616,
"MsgSendRate": 0,
"DiscardedMsgs": 0,
"ExpiredMsgs": 0,
"Suspend": 0
},
"Unreliable": {
"BufferedMsgs": 0,
"BufferedMsgsHWM": 1,
"BufferedBytes": 0,
"MaxBytes": 0,
"SentMsgs": 1440,
"MsgSendRate": 0,
"DiscardedMsgs": 0,
"ExpiredMsgs": 0,
"Suspend": 0
}
}
]
}