NetApp / harvest

Open-metrics endpoint for ONTAP and StorageGRID
https://netapp.github.io/harvest/latest
Apache License 2.0
147 stars 36 forks source link

cluster svm_labels missing #3122

Closed WayneShen2 closed 2 weeks ago

WayneShen2 commented 2 weeks ago

Is your feature request related to a problem? Please describe. I could see our 1 cluster svm_labels missing

Normally on volume_lables volume_lables

Issue on svm_lables svm_lables

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature r

rahulguptajss commented 2 weeks ago

@WayneShen2 Could you share Harvest logs to ng-harvest-files@netapp.com?

WayneShen2 commented 2 weeks ago

i could see log error log.

2024-08-27T00:23:17Z ERR collector/collector.go:308 > Collector panicked runtime error: invalid memory address or nil pointer dereference error="goroutine panic" Poller=bocfs10 collector=ZapiPerf:FlexCache stack="goroutine 803 [running]:\ngithub.com/netapp/harvest/v2/pkg/logging.MarshalStack({0xc60060?, 0xc007ef6680?})\n\tgithub.com/netapp/harvest/v2/pkg/logging/logger.go:157 +0x85\ngithub.com/rs/zerolog.(Event).Err(0xc0001a9960, {0xc60060, 0xc007ef6680})\n\tgithub.com/rs/zerolog@v1.33.0/event.go:395 +0x51\ngithub.com/netapp/harvest/v2/cmd/poller/collector.(AbstractCollector).Start.func1()\n\tgithub.com/netapp/harvest/v2/cmd/poller/collector/collector.go:307 +0xc7\npanic({0xa9f4c0?, 0x1090c80?})\n\truntime/panic.go:770 +0x132\ngithub.com/netapp/harvest/v2/pkg/set.(Set).Has(...)\n\tgithub.com/netapp/harvest/v2/pkg/set/set.go:39\ngithub.com/netapp/harvest/v2/cmd/collectors/zapiperf/plugins/flexcache.(FlexCache).Run(0xc0001b0ad0, 0xc0007ae300?)\n\tgithub.com/netapp/harvest/v2/cmd/collectors/zapiperf/plugins/flexcache/flexcache.go:61 +0x178\ngithub.com/netapp/harvest/v2/cmd/poller/collector.(AbstractCollector).Start(0xc0003248f0, 0x0?)\n\tgithub.com/netapp/harvest/v2/cmd/poller/collector/collector.go:452 +0x17e7\ncreated by main.(Poller).Start in goroutine 1\n\tgithub.com/netapp/harvest/v2/cmd/poller/poller.go:485 +0x85\n" 2

rahulguptajss commented 2 weeks ago

Thanks @WayneShen2 for the logs.

The error related to svm_labels is due to the error logs below. The error you mentioned is a different one. We will address and fix both issues.

2024-08-27T00:02:05Z ERR collector/collector.go:308 > Collector panicked runtime error: invalid memory address or nil pointer dereference error="goroutine panic" Poller=bocfs10 collector=Zapi:SVM stack="goroutine 796 [running]:\ngithub.com/netapp/harvest/v2/pkg/logging.MarshalStack({0xc60060?, 0xc0018649c0?})\n\tgithub.com/netapp/harvest/v2/pkg/logging/logger.go:157 +0x85\ngithub.com/rs/zerolog.(Event).Err(0xc0000cc4d0, {0xc60060, 0xc0018649c0})\n\tgithub.com/rs/zerolog@v1.33.0/event.go:395 +0x51\ngithub.com/netapp/harvest/v2/cmd/poller/collector.(AbstractCollector).Start.func1()\n\tgithub.com/netapp/harvest/v2/cmd/poller/collector/collector.go:307 +0xc7\npanic({0xa9f4c0?, 0x1090c80?})\n\truntime/panic.go:770 +0x132\ngithub.com/netapp/harvest/v2/pkg/tree/node.(Node).GetAllChildContentS(...)\n\tgithub.com/netapp/harvest/v2/pkg/tree/node/node.go:225\ngithub.com/netapp/harvest/v2/cmd/collectors/zapi/plugins/svm.(SVM).GetNSSwitchInfo(0xc0006d1b90)\n\tgithub.com/netapp/harvest/v2/cmd/collectors/zapi/plugins/svm/svm.go:377 +0x5aa\ngithub.com/netapp/harvest/v2/cmd/collectors/zapi/plugins/svm.(SVM).Run(0xc0006d1b90, 0xc000681f50?)\n\tgithub.com/netapp/harvest/v2/cmd/collectors/zapi/plugins/svm/svm.go:141 +0x206\ngithub.com/netapp/harvest/v2/cmd/poller/collector.(AbstractCollector).Start(0xc000922b60, 0x0?)\n\tgithub.com/netapp/harvest/v2/cmd/poller/collector/collector.go:452 +0x17e7\ncreated by main.(*Poller).Start in goroutine 1\n\tgithub.com/netapp/harvest/v2/cmd/poller/poller.go:485 +0x85\n"