Skip to content

Commit

Permalink
feat: add netport metric doc
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss authored and cgrinds committed Oct 24, 2024
1 parent 76d0e6f commit 057d267
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
2 changes: 0 additions & 2 deletions cmd/tools/generate/counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ var (
"_labels",
"volume_arw_status",
"ALERTS",
"net_port_status",
}

// Exclude extra metrics for ZAPI
Expand All @@ -173,7 +172,6 @@ var (
"security_",
"svm_ldap",
"ALERTS",
"net_port_status",
}
)

Expand Down
12 changes: 12 additions & 0 deletions cmd/tools/generate/counter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1927,3 +1927,15 @@ counters:
Endpoint: api/support/ems/events
ONTAPCounter: Harvest generated
Template: conf/ems/9.6.0/ems.yaml

- Name: net_port_status
Description: This metric indicates a value of 1 if the port state is up and a value of 0 for any other state.
APIs:
- API: REST
Endpoint: NA
ONTAPCounter: Harvest generated
Template: conf/rest/9.12.0/netport.yaml
- API: ZAPI
Endpoint: NA
ONTAPCounter: Harvest generated
Template: conf/zapi/cdot/9.8.0/netport.yaml
12 changes: 11 additions & 1 deletion docs/ontap-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ These can be generated on demand by running `bin/harvest grafana metrics`. See
- More information about ONTAP REST performance counters can be found [here](https://docs.netapp.com/us-en/ontap-pcmap-9121/index.html).

```
Creation Date : 2024-Oct-23
Creation Date : 2024-Oct-24
ONTAP Version: 9.15.1
```
## Understanding the structure
Expand Down Expand Up @@ -4046,6 +4046,16 @@ Maximum transmission unit, largest packet size on this network
| ZAPI | `net-port-get-iter` | `net-port-info.mtu` | conf/zapi/cdot/9.8.0/netport.yaml |


### net_port_status

This metric indicates a value of 1 if the port state is up and a value of 0 for any other state.

| API | Endpoint | Metric | Template |
|--------|----------|--------|---------|
| REST | `NA` | `Harvest generated` | conf/rest/9.12.0/netport.yaml |
| ZAPI | `NA` | `Harvest generated` | conf/zapi/cdot/9.8.0/netport.yaml |


### netstat_bytes_recvd

Number of bytes received by a TCP connection
Expand Down

0 comments on commit 057d267

Please sign in to comment.