#port health metric
1 messages · Page 1 of 1 (latest)
@chilly violet Would you know any ontap cli which shows this?
How about network port show -health ?
yup
Yes, It can be added to Ethernet Ports table in Network dashboard. Does that work for you? It will be added to net_port_status.
perfect, thanks! do you want me to open github issue for that?
Yes please
@chilly violet This change is now available in nightly build of Harvest. Please upgrade to this version and share your feedback. Thanks.
Thanks. NetPort is enabled by default? don't see that metric in default setup
Yes, it is enabled by default. What is your Harvest version?
image: ghcr.io/netapp/harvest:nightly
container_name: poller-netapp-aff-[...]
restart: unless-stopped
ports:
- "13004:13004"
command: '--poller netapp-aff-[...] --promPort 13004 --config /opt/harvest.yml'
volumes:
- ./cert:/opt/harvest/cert
- ./harvest.yml:/opt/harvest.yml
- ./conf:/opt/harvest/conf```
Okay. Are you saying that you don't have metric named net_port_status ?
Which collector are you using Rest, Zapi?
datacenter: [...]
addr: [...]
auth_styl basic_auth
username: harvest
password: "..."
use_insecure_tls: true # Disable TLS verification when connecting to ONTAP cluster
exporters:
- prometheus1
collectors:
- Zapi
- ZapiPerf
- Rest
- RestPerf```
I see. This field is not added to Zapi templates. Let me check and get back.
can i use Rest?
What is your ontap version?
9.16.1P11
Yes, you can switch order of collectors as
Rest
RestPerf
Zapi
ZapiPerf
For Zapi, You would need this template change
https://github.com/NetApp/harvest/pull/4304/changes
Rest & Zapi are redundant? can/should we use one of them?
In the case of version 9.16, you can just use Rest and RestPerf. Even if you have set both Rest/RestPerf and Zapi/ZapiPerf, Harvest will dedup common objects based on which collector is set first.
Below is the metric, you should see with Rest collectors with nightly build
still the same :
- Rest
- RestPerf```
```2026-05-25T14:19:36.643052310+02:00 stderr F time=2026-05-25T12:19:36.642Z level=INFO source=poller.go:243 msg=Init Poller=netapp-aff-[...] logLevel=INFO configPath=/opt/harvest.yml cwd=/opt/harvest version="harvest version 26.05.25-nightly (commit 28a2c20c) (build date 2026-05-25T06:56:35+0000) linux/amd64" fips=false options="&{Poller:netapp-aff-[...] Daemon:false Debug:false PromPort:13004 Config:/opt/harvest.yml HomePath: LogPath:/var/log/harvest/ LogFormat:plain LogLevel:2 LogToFile:false Version:26.05.25 Hostname:a109d2f47f38 Collectors:[] Objects:[] Profiling:0 Asup:false IsTest:false ConfPath:conf ConfPaths:[conf]}"```
Collectors:[] is correct?
Yes that is fine.
Ok. I see that you are using container based deployment and you are mounting conf folder.
Can you check if you have template changes?
Can you share content of
conf/rest/9.12.0/netport.yaml ?
Also pls confirm problem statement from below.
a) You are not getting the net_port_status metric at all
b) You are getting the net_port_status metric, but it does not have the health_status label
not getting net_port metric at all, checking conf dir, give us a sec
sure. Please share conf/rest/default.yaml as well
Here it is. Let's enable that.
Are you using docker compose workflow for containers? or some other workflow?
https://netapp.github.io/harvest/26.05/install/containers/#docker-compose
docker compose but podman for containers
netport.yaml is not updated as well
Okay. Ideally, if steps here https://netapp.github.io/harvest/26.05/install/containers/#docker-compose
are followed then templates should update as well.
For now, you can edit Rest netport.yaml to have this change
Grafana dashboard is here
https://raw.githubusercontent.com/NetApp/harvest/refs/heads/main/grafana/dashboards/cmode/network.json
yup - apologize for that. Metrics are available.
Great!