Skip to content

Commit

Permalink
feat: Adding Ethernet port table from netport template (#3221)
Browse files Browse the repository at this point in the history
* feat: Adding Ethernet port table from netport template

---------

Co-authored-by: rahulguptajss <[email protected]>
  • Loading branch information
Hardikl and rahulguptajss authored Oct 24, 2024
1 parent 607db7c commit 2c619b0
Show file tree
Hide file tree
Showing 6 changed files with 408 additions and 37 deletions.
2 changes: 1 addition & 1 deletion cmd/tools/generate/counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ var (
"aggr_hybrid_disk_count",
"nfs_clients_idle_duration",
"ems_events",
"olume_top_clients",
"volume_top_clients",
}

excludeDocumentedZapiMetrics = []string{
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
2 changes: 1 addition & 1 deletion conf/rest/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ objects:
Namespace: namespace.yaml
# NDMPSession: ndmp_session.yaml
# NetConnections: netconnections.yaml
# NetPort: netport.yaml
NetPort: netport.yaml
NetRoute: netroute.yaml
# NFSClients: nfs_clients.yaml
Node: node.yaml
Expand Down
2 changes: 1 addition & 1 deletion conf/zapi/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ objects:
LIF: lif.yaml
# Lock: lock.yaml
Lun: lun.yaml
# NetPort: netport.yaml
NetPort: netport.yaml
Namespace: namespace.yaml
Node: node.yaml
NtpServer: ntpserver.yaml
Expand Down
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
Loading

0 comments on commit 2c619b0

Please sign in to comment.