Hello. I ran kube-amqp-autoscale on k8s. There is log:
Starting Kubernetes AMQP Autoscaler 0.1-SNAPSHOT (f3086f4)
System with 12 CPUs and environment with 12 max processes
Not enough metrics to calculate new size, required at least 0.75 was 0.42 metrics ratio
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1378a8b]
goroutine 53 [running]:
main.scaleDeployments(0xc4201220c0, 0x16c808d, 0x7, 0x7fff025ca7ec, 0x15, 0x7fff00000000, 0xc4202a1ac0, 0x7fff025ca92a, 0x34)
/go/src/autoscaler/kube.go:61 +0xfb
main.scaleKind(0xc4201220c0, 0x16cb0dd, 0xa, 0x16c808d, 0x7, 0x7fff025ca7ec, 0x15, 0x0, 0xc4202a1ac0, 0xc420433101, ...)
/go/src/autoscaler/kube.go:54 +0x30b
main.scale(0x16cb0dd, 0xa, 0x16c808d, 0x7, 0x7fff025ca7ec, 0x15, 0xc400000000, 0xc4204a5e58, 0xc4202a1a20, 0x14dd540)
/go/src/autoscaler/kube.go:44 +0xca
main.main.func3(0xc400000000, 0x0, 0x3fed555555555555)
/go/src/autoscaler/main.go:168 +0x192
main.autoscale(0xc4203d3a60, 0xc4203d3a80, 0xc420169140)
/go/src/autoscaler/actuator.go:46 +0x1f4
created by main.main
/go/src/autoscaler/main.go:176 +0x520