Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

AWS Cloudwatch adapter crashes #85

Open
getsoubl opened this issue May 17, 2021 · 1 comment
Open

AWS Cloudwatch adapter crashes #85

getsoubl opened this issue May 17, 2021 · 1 comment

Comments

@getsoubl
Copy link

getsoubl commented May 17, 2021

k8s-cloudwatch-adapter pod is not able to start in EC2 environment. Running kubectl logs k8s-cloudwatch-adapter-pod -n custom-metrics I get the following error

I0518 05:57:06.736713 1 controller.go:35] Setting up external metric event handlers I0518 05:57:06.736816 1 controller.go:57] initializing controller panic: runtime error: slice bounds out of range [:-1]

goroutine 1 [running]: github.com/awslabs/k8s-cloudwatch-adapter/pkg/aws.GetLocalRegion(0x0, 0x0) /go/src/github.com/awslabs/k8s-cloudwatch-adapter/pkg/aws/util.go:29 +0x27e github.com/awslabs/k8s-cloudwatch-adapter/pkg/aws.NewCloudWatchManager(...) /go/src/github.com/awslabs/k8s-cloudwatch-adapter/pkg/aws/client.go:22 main.(*CloudWatchAdapter).makeCloudWatchManager(...) /go/src/github.com/awslabs/k8s-cloudwatch-adapter/cmd/adapter/adapter.go:28 main.main() /go/src/github.com/awslabs/k8s-cloudwatch-adapter/cmd/adapter/adapter.go:88 +0x256

@getsoubl getsoubl reopened this May 18, 2021
@getsoubl
Copy link
Author

It is related with #86

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant