Open vishnu-k1 opened 1 week ago
Pinging code owners: @djaglowsk, @schmikei, @StefanKurek
Pinging code owners for receiver/vcenter: @djaglowski @schmikei @StefanKurek. See Adding Labels via Comments if you do not have permissions to add labels yourself.
Hello. This seems to imply that you weren't able to pull the config info for a VM which seems odd. Any reason that your user's permissions wouldn't allow this?
Component(s)
No response
What happened?
Description
I used vcenter receiver to pull data from vcenter data for monitoring but it endsup with error and terminating the collector from running.
Steps to Reproduce
Expected Result
vcenter datacollection
Actual Result
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0xe8 pc=0x382497e]
goroutine 95 [running]: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/vcenterreceiver.(vcenterMetricScraper).buildVMMetrics(0xc001da4660, 0x17f15d72807f6040, 0xc001e498c8, 0xc003206988, 0xc002397a60?) github.com/open-telemetry/opentelemetry-collector-contrib/receiver/vcenterreceiver@v0.108.0/processors.go:310 +0x1de github.com/open-telemetry/opentelemetry-collector-contrib/receiver/vcenterreceiver.(vcenterMetricScraper).processVMs(0xc001da4660, 0x17f15d72807f6040, 0xc001e498c8, 0xc002b80840, 0xc002397850, 0xc002397cd0) github.com/open-telemetry/opentelemetry-collector-contrib/receiver/vcenterreceiver@v0.108.0/processors.go:228 +0xfb github.com/open-telemetry/opentelemetry-collector-contrib/receiver/vcenterreceiver.(vcenterMetricScraper).processDatacenterData(0xc001da4660, 0xc001e498c8, 0xc002397cd0) github.com/open-telemetry/opentelemetry-collector-contrib/receiver/vcenterreceiver@v0.108.0/processors.go:41 +0x25d github.com/open-telemetry/opentelemetry-collector-contrib/receiver/vcenterreceiver.(vcenterMetricScraper).scrapeAndProcessAllMetrics(0xc001da4660, {0x56df948, 0xc001e133e0}, 0xc002397cd0)
Collector version
108
Environment information
Environment
OS: (e.g., "Ubuntu 20.04") Compiler(if manually compiled): (e.g., "go 14.2") RHEL 9.4 go 1.22
OpenTelemetry Collector configuration
Log output
Additional context
No response