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

AWS Cloudwatch adapter crashes #85

@getsoubl

Description

@getsoubl

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

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