Giter Site home page Giter Site logo

Comments (6)

mikkeloscar avatar mikkeloscar commented on May 28, 2024

Yup, that should work, it just uses the AWS SDK for access to SQS, so any valid way of configuring the SDK should work (not tested though).

from kube-metrics-adapter.

jonathangold avatar jonathangold commented on May 28, 2024

@mikkeloscar thanks for the quick reply. Once I get it working, I'll submit a PR to document the process.

from kube-metrics-adapter.

mikkeloscar avatar mikkeloscar commented on May 28, 2024

@mikkeloscar thanks for the quick reply. Once I get it working, I'll submit a PR to document the process.

Awesome! Looking forward to it!

from kube-metrics-adapter.

jonathangold avatar jonathangold commented on May 28, 2024

@mikkeloscar I've started on my deployment, but I'm getting the following error on the kube-metrics-adapter pod:

time="2019-02-21T21:41:53Z" level=info 
msg="Event(v1.ObjectReference{Kind:\"HorizontalPodAutoscaler\", Namespace:\"omitted\",
Name:\"omitted-hpa\", UID:\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", APIVersion:\"autoscaling/v2beta1\", 
ResourceVersion:\"XXXXXX\", FieldPath:\"\"}): type: 'Warning' reason: 'CreateNewMetricsCollector' Failed 
to create new metrics collector: no plugin found for {External sqs-queue-length}"

I tried tracing the code-path, but didn't have much luck. Am I missing something obvious? Thanks in advance.

from kube-metrics-adapter.

mikkeloscar avatar mikkeloscar commented on May 28, 2024

Are you setting the --aws-external-metrics and --aws-region flags?

awsSessions := make(map[string]*session.Session, len(o.AWSRegions))
for _, region := range o.AWSRegions {
awsSessions[region], err = session.NewSession(&aws.Config{Region: aws.String(region)})
if err != nil {
return fmt.Errorf("unabled to create aws session for region: %s", region)
}
}

if o.AWSExternalMetrics {
collectorFactory.RegisterExternalCollector([]string{collector.AWSSQSQueueLengthMetric}, collector.NewAWSCollectorPlugin(awsSessions))
}

from kube-metrics-adapter.

jonathangold avatar jonathangold commented on May 28, 2024

That was the issue. It's working now! thanks!

from kube-metrics-adapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.