#port health metric

1 messages · Page 1 of 1 (latest)

chilly violet
#

Hi! Any chance port health label can be added to nic_labels metric or nic_new_status? I had very unpleastent outage, when one port was up but degradated.

unreal cradle
#

@chilly violet Would you know any ontap cli which shows this?
How about network port show -health ?

chilly violet
#

yup

unreal cradle
#

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.

chilly violet
#

perfect, thanks! do you want me to open github issue for that?

unreal cradle
#

Yes please

unreal cradle
#

@chilly violet This change is now available in nightly build of Harvest. Please upgrade to this version and share your feedback. Thanks.

chilly violet
#

Thanks. NetPort is enabled by default? don't see that metric in default setup

unreal cradle
#

Yes, it is enabled by default. What is your Harvest version?

chilly violet
#
    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```
unreal cradle
#

Okay. Are you saying that you don't have metric named net_port_status ?
Which collector are you using Rest, Zapi?

chilly violet
#
    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```
unreal cradle
#

I see. This field is not added to Zapi templates. Let me check and get back.

chilly violet
#

can i use Rest?

unreal cradle
#

What is your ontap version?

shut tide
#

9.16.1P11

unreal cradle
#

Yes, you can switch order of collectors as

Rest
RestPerf
Zapi
ZapiPerf
chilly violet
#

Rest & Zapi are redundant? can/should we use one of them?

unreal cradle
#

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

chilly violet
#

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?

unreal cradle
#

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

shut tide
#

not getting net_port metric at all, checking conf dir, give us a sec

unreal cradle
#

sure. Please share conf/rest/default.yaml as well

chilly violet
#
#  ExportRule:                  exports.yaml
#  NetPort:                     netport.yaml```
#

🙂

unreal cradle
#

Here it is. Let's enable that.

shut tide
#

docker compose but podman for containers

chilly violet
#

netport.yaml is not updated as well

unreal cradle
chilly violet
#

yup - apologize for that. Metrics are available.

unreal cradle
#

Great!