-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add counters for netstat object for packet loss #1386
Comments
Thanks for the suggestion and KB article @MrObvious The following template includes the metrics from the article. Does this include what you need? Any thoughts on which labels should be exported with each metric. The template below creates metrics that look like this.
Template
|
I think joining faddr:fport together works better. Thanks for putting that together Chris. It looks great! |
Fixes: #1386 REST Perf does not include this object. ```bash curl -k -n 'https://10.195.15.41/api/cluster/counter/tables/netstat?return_records=true&fields=*' { "error": { "message": "Object \"netstat\" was not found.", "code": "8585320", "target": "name" } } ```
Thanks! Fixed in #1423 My guess is this probably makes sense to be commented out by default and only enabled when needed. Do you agree? I also noticed REST Perf does not include this object. curl -k -n 'https://10.195.15.41/api/cluster/counter/tables/netstat?return_records=true&fields=*'
{
"error": {
"message": "Object \"netstat\" was not found.",
"code": "8585320",
"target": "name"
}
} Would you mind opening an ONTAP burt to have this object/metrics included? |
Fixes: #1386 REST Perf does not include this object. ```bash curl -k -n 'https://10.195.15.41/api/cluster/counter/tables/netstat?return_records=true&fields=*' { "error": { "message": "Object \"netstat\" was not found.", "code": "8585320", "target": "name" } } ```
verfied in 22.11 |
This is a consideration to be asked for. The netstat object is a counter manager version of the netstat -anCEWcT command in ONTAP 9.5 and higher, and tracks things like per-TCP connection out-of-order recieves and zero windows. https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/How_to_use_netstat_to_troubleshoot_network_problems_in_ONTAP_9.5_or_newer has more info.
I could see a dashboard being useful for customers wanting to track packet loss on TCP sessions. Most of these counters wouldn't be useful but ooorcv and rexmit_pkts would be I think:
pstejska_vsim::*> statistics catalog counter show -object netstat
Object: netstat
Counter Description
--------------------------- ----------------------------------------------
bytes_recvd Number of bytes received by a TCP connection
bytes_sent Number of bytes sent by a TCP connection
cc_algo TCP congestion control name
cg_class CG traffic class of a connection
cg_id CG ID used for the connection
cgtc_enabled CG traffic classification enabled
col Column ID of CG table used for a TCP
Connection
cong_win Congestion window of a TCP connection
cong_win_th Congestion window threshold of a TCP
connection
ecn TCP Explicit Congestion Notification (ECN)
status
faddr Foreign IP address of a TCP connection
fport_hbo Foreign layer-4 port of a TCP connection
hash Hash corresponding to a TCP connection
instance_name Instance Name
instance_uuid Instance UUID
laddr Local IP address of a TCP connection
lport_hbo Local layer-4 port of a TCP connection
mss Maximum segment size of a TCP connection
node_name System node name
node_uuid System node id
ooorcv_pkts Number of out-of-order packets received by
this TCP connection
process_name Ontap process that provided this instance
recv_hiwa Hi-water mark of socket receive buffer
recv_q Receive queue size of TCP connections
established
recv_window Receive window size of a TCP connection
req_cg_id Requested CG ID used for the connection by
application
rexmit_pkts Number of packets retransmitted by this TCP
connection
row Row ID of CG table used for a TCP Connection
send_hiwa Hi-water mark for socket send buffer
send_q Send queue size of TCP connections
send_window Send window size of a TCP connection
tc_weight CG traffic class weight of a connection
The text was updated successfully, but these errors were encountered: