Name
/stats/summary
— show global metrics
Synopsis
GET /stats/summary
Description
Perhaps the most common API command, /stats/summary
will produce global metrics such as queue sizes, message counts and throughput rates since startup or the last reset of statistics.
The data is formatted as a JSON object and you might want to use the curl
command to do the request (e.g. curl -sS localhost:2081/stats/summary
).
Sample output is shown below:
{
"OutboundConcurrency": 209,
"InboundConcurrency": 1340,
"ActiveDomains": 8253,
"ActiveQueueSize": 39,
"DelayedQueueSize": 2,
"TotalQueueSize": 47,
"DNSResolver": "ares",
"DNSAQueries": 6307067,
"DNSATimeouts": 34,
"DNSAAAAQueries": 0,
"DNSAAAATimeouts": 0,
"DNSMXQueries": 5361180,
"DNSMXTimeouts": 22,
"DNSTXTQueries": 114992,
"DNSTXTTimeouts": 57,
"DNSQueryRate": 2.25,
"DNSResponseTimePeak": 291,
"DNSResponseTimeAverage": 1.04,
"ResidentMessages": 120,
"DiskQueueProgress": " 29/ 29",
"DeliveredMessages": 516030153,
"FailedMessages": 6406412,
"TransientFailures": 7533966,
"RejectedMessages": 0,
"ReceivedMessages": 522356470,
"DeliveryRate": 100.85,
"ReceptionRate": 100.84,
"RejectionRate": 0,
"RejectionPercentage": 0,
"StatisticsLastReset": 5180099,
"Uptime": 510923
}
The report fields are as follows:
- OutboundConcurrency
-
The current number of established outbound sessions.
- InboundConcurrency
-
The current number of established inbound sessions.
- ActiveDomains
-
The number of domains in the DNS cache.
- ActiveQueueSize
-
The number of messages in the system that require immediate delivery attempts.
- DelayedQueueSize
-
The number of messages in the system that have been delayed. A message is delayed due to transient delivery failures (4xx SMTP codes) and a retry time is calculated for the message. When that retry time is reached, the message will be moved from the delayed queue to the active queue.
- TotalQueueSize
-
The sum of all queues.
- DNSResolver
-
The library used to resolve DNS queries.
- DNSAQueries
-
The total number of A type queries issued since startup or last summary reset.
- DNSATimeouts
-
Introduced in Momentum 4.8.
The total number of A type queries that resulted expired since startup or last summary reset.
- DNSAAAAQueries
-
The total number of AAAA type queries issued since startup or last summary reset.
- DNSAAAATimeouts
-
Introduced in Momentum 4.8.
The total number of AAAA type queries that resulted expired since startup or last summary reset.
- DNSMXQueries
-
The total number of MX type DNS queries issued since startup or last summary reset.
- DNSMXTimeouts
-
Introduced in Momentum 4.8.
The total number of MX type queries that resulted expired since startup or last summary reset.
- DNSTXTQueries
-
Introduced in Momentum 4.8.
The total number of TXT type queries issued since startup or last summary reset.
- DNSTXTTimeouts
-
Introduced in Momentum 4.8.
The total number of TXT type queries that resulted expired since startup or last summary reset.
- DNSQueryRate
-
The average number of DNS queries/second performed since startup or last summary reset.
- DNSResponseTimePeak
-
Introduced in Momentum 4.8.
The peak of all answers response times since startup or last summary reset, in milliseconds.
- DNSResponseTimeAverage
-
Introduced in Momentum 4.8.
The average of all answers response times since startup or last summary reset, in milliseconds.
- ResidentMessages
-
The number of message bodies held in memory.
- DiskQueueProgress
-
The message spool in progress.
- DeliveredMessages
-
The number of messages successfully delivered by Momentum since it was started or since the last summary reset.
- FailedMessages
-
The number of outbound messages permanently failed since it was started or since the last summary reset.
- TransientFailures
-
The number of outbound messages transiently failed since it was started or since the last summary reset.
- RejectedMessages
-
The number of messages rejected by Momentum since it was started or since the last summary reset.
- ReceivedMessages
-
The number of messages received by Momentum for deliver since it was started or since the last summary reset.
- DeliveryRate
-
The average number of messages/second delivered (successful and unsuccessful) since Momentum was started or since the last summary reset.
- ReceptionRate
-
The average number of messages/second received for delivery since Momentum was started or since the last summary reset.
- RejectionRate
-
The average number of messages/second rejected since Momentum was started or since the last summary reset.
- RejectionPercentage
-
The percentage of messages rejected by Momentum since it was started or since the last summary reset.
- StatisticsLastReset
-
The number of seconds since statistics were reset using the "summary reset" command (see below).
- Uptime
-
The number of seconds that Momentum has been running continuously.
See Also
Note
This command was first implemented in Momentum 4.4.1.