Skip to content

runtime error: index out of range #748

Description

@ashu16815

Host operating system: output of uname -a

Linux caplifs02.telecom.tcnz.net 3.10.0-514.6.1.el7.x86_64 #1 SMP Sat Dec 10 11:15:38 EST 2016 x86_64 x86_64 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

node_exporter --version
node_exporter, version 0.15.1 (branch: HEAD, revision: ba5da2c)
build user: root@b73d73f4fc5e
build date: 20171107-17:50:51
go version: go1.9.2

node_exporter command line flags

./node_exporter &

Are you running node_exporter in Docker?

No

What did you do that produced an error?

started node_exporter and it breaks in few seconds

What did you expect to see?

node metrics should pick by node_exporter

What did you see instead?

INFO[0000] Listening on :9100 source="node_exporter.go:76"
panic: runtime error: index out of range

goroutine 67 [running]:
github.com/prometheus/node_exporter/collector.(*cpuCollector).updateCPUfreq(0xc42023c690, 0xc420168fc0, 0x0, 0x0)
/go/src/github.com/prometheus/node_exporter/collector/cpu_linux.go:164 +0x13ad
github.com/prometheus/node_exporter/collector.(*cpuCollector).Update(0xc42023c690, 0xc420168fc0, 0x104adc0, 0x0)
/go/src/github.com/prometheus/node_exporter/collector/cpu_linux.go:94 +0x60
github.com/prometheus/node_exporter/collector.execute(0xabf498, 0x3, 0x1013220, 0xc42023c690, 0xc420168fc0)
/go/src/github.com/prometheus/node_exporter/collector/collector.go:118 +0x7e
github.com/prometheus/node_exporter/collector.nodeCollector.Collect.func1(0xc420168fc0, 0xc4201ee030, 0xabf498, 0x3, 0x1013220, 0xc42023c690)
/go/src/github.com/prometheus/node_exporter/collector/collector.go:109 +0x53
created by github.com/prometheus/node_exporter/collector.nodeCollector.Collect
/go/src/github.com/prometheus/node_exporter/collector/collector.go:108 +0x109

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions