Skip to content

Commit

Permalink
feat: add netstat metrics for packet loss (#1423)
Browse files Browse the repository at this point in the history
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"
  }
}
```
  • Loading branch information
cgrinds authored Nov 8, 2022
1 parent 4d38974 commit 86ce2a5
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions conf/zapiperf/cdot/9.8.0/netstat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

name: Netstat
query: netstat
object: netstat

instance_key: uuid

counters:
- bytes_recvd
- bytes_sent
- cong_win
- cong_win_th
- faddr
- fport_hbo => fport
- instance_uuid
- laddr
- lport_hbo => lport
- node_name => node
- ooorcv_pkts
- recv_window
- rexmit_pkts
- send_window

override:
lport_hbo: string
fport_hbo: string

plugins:
- LabelAgent:
join:
- faddr `_` faddr,fport
- laddr `_` laddr,lport

export_options:
instance_keys:
- node
- faddr
- laddr
1 change: 1 addition & 0 deletions conf/zapiperf/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ objects:
HeadroomAggr: resource_headroom_aggr.yaml
HeadroomCPU: resource_headroom_cpu.yaml
HostAdapter: hostadapter.yaml
# Netstat: netstat.yaml
NFSv3Node: nfsv3_node.yaml
NFSv41Node: nfsv4_1_node.yaml
NFSv42Node: nfsv4_2_node.yaml
Expand Down

0 comments on commit 86ce2a5

Please sign in to comment.