Skip to content
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

feat: Adding Ethernet port table from netport template #3221

Merged
merged 7 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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