forked from External/mediamtx
srt: add additional metrics (#2962)
* first attempt at the srt metrics * Updated variables to better match mediamtx * Prometheus metrics for SRT * Update readme for SRT metrics * Switch openapi to number from float * SRT metrics metrics response fix * Make the metric test less strict, and nolint line length on the SRT metrics struct * remove nolint * move BytesSent and BytesReceived into APISRTConnMetrics * merge APISRTConn and APISRTConnMetrics * improve tests --------- Co-authored-by: slowe <slowe@clairglobal.com> Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
This commit is contained in:
parent
970c73639f
commit
e5e029a7f4
7 changed files with 776 additions and 384 deletions
|
|
@ -626,12 +626,211 @@ components:
|
|||
type: string
|
||||
query:
|
||||
type: string
|
||||
bytesReceived:
|
||||
packetsSent:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of sent DATA packets, including retransmitted packets
|
||||
packetsReceived:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of received DATA packets, including retransmitted packets
|
||||
packetsSentUnique:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of unique DATA packets sent by the SRT sender
|
||||
packetsReceivedUnique:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of unique original, retransmitted or recovered by the packet filter DATA packets received in time, decrypted without errors and, as a result, scheduled for delivery to the upstream application by the SRT receiver.
|
||||
packetsSendLoss:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of data packets considered or reported as lost at the sender side. Does not correspond to the packets detected as lost at the receiver side.
|
||||
packetsReceivedLoss:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of SRT DATA packets detected as presently missing (either reordered or lost) at the receiver side
|
||||
packetsRetrans:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of retransmitted packets sent by the SRT sender
|
||||
packetsReceivedRetrans:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of retransmitted packets registered at the receiver side
|
||||
packetsSentACK:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of sent ACK (Acknowledgement) control packets
|
||||
packetsReceivedACK:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of received ACK (Acknowledgement) control packets
|
||||
packetsSentNAK:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of sent NAK (Negative Acknowledgement) control packets
|
||||
packetsReceivedNAK:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of received NAK (Negative Acknowledgement) control packets
|
||||
packetsSentKM:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of sent KM (Key Material) control packets
|
||||
packetsReceivedKM:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of received KM (Key Material) control packets
|
||||
usSndDuration:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total accumulated time in microseconds, during which the SRT sender has some data to transmit, including packets that have been sent, but not yet acknowledged
|
||||
packetsSendDrop:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of dropped by the SRT sender DATA packets that have no chance to be delivered in time
|
||||
packetsReceivedDrop:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of dropped by the SRT receiver and, as a result, not delivered to the upstream application DATA packets
|
||||
packetsReceivedUndecrypt:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The total number of packets that failed to be decrypted at the receiver side
|
||||
bytesSent:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Same as packetsSent, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
|
||||
bytesReceived:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Same as packetsReceived, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
|
||||
bytesSentUnique:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Same as packetsSentUnique, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
|
||||
bytesReceivedUnique:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Same as packetsReceivedUnique, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
|
||||
bytesReceivedLoss:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Same as packetsReceivedLoss, but expressed in bytes, including payload and all the headers (IP, TCP, SRT), bytes for the presently missing (either reordered or lost) packets' payloads are estimated based on the average packet size
|
||||
bytesRetrans:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Same as packetsRetrans, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
|
||||
bytesReceivedRetrans:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Same as packetsReceivedRetrans, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
|
||||
bytesSendDrop:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Same as packetsSendDrop, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
|
||||
bytesReceivedDrop:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Same as packetsReceivedDrop, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
|
||||
bytesReceivedUndecrypt:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Same as packetsReceivedUndecrypt, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
|
||||
usPacketsSendPeriod:
|
||||
type: number
|
||||
format: float64
|
||||
description: Current minimum time interval between which consecutive packets are sent, in microseconds
|
||||
packetsFlowWindow:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The maximum number of packets that can be "in flight"
|
||||
packetsFlightSize:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The number of packets in flight
|
||||
msRTT:
|
||||
type: number
|
||||
format: float64
|
||||
description: Smoothed round-trip time (SRTT), an exponentially-weighted moving average (EWMA) of an endpoint's RTT samples, in milliseconds
|
||||
mbpsSendRate:
|
||||
type: number
|
||||
format: float64
|
||||
description: Current transmission bandwidth, in Mbps
|
||||
mbpsReceiveRate:
|
||||
type: number
|
||||
format: float64
|
||||
description: Current receiving bandwidth, in Mbps
|
||||
mbpsLinkCapacity:
|
||||
type: number
|
||||
format: float64
|
||||
description: Estimated capacity of the network link, in Mbps
|
||||
bytesAvailSendBuf:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The available space in the sender's buffer, in bytes
|
||||
bytesAvailReceiveBuf:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The available space in the receiver's buffer, in bytes
|
||||
mbpsMaxBW:
|
||||
type: number
|
||||
format: float64
|
||||
description: Transmission bandwidth limit, in Mbps
|
||||
byteMSS:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Maximum Segment Size (MSS), in bytes
|
||||
packetsSendBuf:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The number of packets in the sender's buffer that are already scheduled for sending or even possibly sent, but not yet acknowledged
|
||||
bytesSendBuf:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Instantaneous (current) value of packetsSndBuf, but expressed in bytes, including payload and all headers (IP, TCP, SRT)
|
||||
msSendBuf:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The timespan (msec) of packets in the sender's buffer (unacknowledged packets)
|
||||
msSendTsbPdDelay:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Timestamp-based Packet Delivery Delay value of the peer
|
||||
packetsReceiveBuf:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The number of acknowledged packets in receiver's buffer
|
||||
bytesReceiveBuf:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Instantaneous (current) value of packetsRcvBuf, expressed in bytes, including payload and all headers (IP, TCP, SRT)
|
||||
msReceiveBuf:
|
||||
type: integer
|
||||
format: int64
|
||||
description: The timespan (msec) of acknowledged packets in the receiver's buffer
|
||||
msReceiveTsbPdDelay:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Timestamp-based Packet Delivery Delay value set on the socket via SRTO_RCVLATENCY or SRTO_LATENCY
|
||||
packetsReorderTolerance:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Instant value of the packet reorder tolerance
|
||||
packetsReceivedAvgBelatedTime:
|
||||
type: integer
|
||||
format: int64
|
||||
description: Accumulated difference between the current time and the time-to-play of a packet that is received late
|
||||
packetsSendLossRate:
|
||||
type: number
|
||||
format: float64
|
||||
description: Percentage of resent data vs. sent data
|
||||
packetsReceivedLossRate:
|
||||
type: number
|
||||
format: float64
|
||||
description: Percentage of retransmitted data vs. received data
|
||||
|
||||
|
||||
SRTConnList:
|
||||
type: object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue