Skip to content

KPI Metrics Exported

TCP Server KPIs exported by NetAgent and their JSON message format.

1 min read Updated SS MR

KPI Metrics Exported#

KPIs are pushed at 1-minute intervals as a JSON message on the KPI named pipe.

TCP Server KPIs#

The following are the metrics collected by NetAgent:

Session timing#

Field Description
totalSessionCount Total connections seen since the start
currentSessionCount Currently active connections
newSessionCount New connections in this interval
refusedSessionCount Total refused connections
refusedByServerSessionCount Refused by server (RST on SYN)
refusedByClientSessionCount Refused by the client
resetSessionCount Total RST-closed sessions
resetByServerSessionCount RST from server
resetByClientSessionCount RST from client
closedSessionCount Gracefully closed
closedByServerSessionCount FIN initiated by the server
closedByClientSessionCount FIN initiated by the client
incompleteSessionCount Sessions that never established

Session counts#

  • Unit: microseconds
Field Description
minSessionEstTime Minimum connection establishment time
maxSessionEstTime Maximum establishment time
avgSessionEstTime Average establishment time
minSessionLifeTime Minimum session lifetime
maxSessionLifeTime Maximum session lifetime
avgSessionLifeTime Average session lifetime
minSessionResTime Minimum request→response time
maxSessionResTime Maximum response time
avgSessionResTime Average response time

Traffic#

Field Description
txBytes Bytes from server to client
rxBytes Bytes from client to server

Packet retransmission#

Field Description
dupTxCount Duplicate packets (Tx direction)
retransTxCount Retransmitted packets (Tx)
dupTxBytes Bytes in duplicate Tx packets
dupRxCount Duplicate packets (Rx direction)
retransRxCount Retransmitted packets (Rx)
dupRxBytes Bytes in duplicate Rx packets

KPI JSON Envelope#

NetAgent writes the KPIs to the pipes in the following JSON format:

For example:

{
    "agentId": "<agent.identifier>",
    "time": "2024-05-16 10:30:45",
    "timeUnit": "us",
    "servers": [
        {
            "serverIp": "192.0.2.133",
            "serverPort": 80,
            "serverType": "TCP",
            "cbsg_totalSessionCount": 150,
            "cbsg_currentSessionCount": 12
        }
    ]
}