Code Monkey home page Code Monkey logo

Comments (2)

DirectXMan12 avatar DirectXMan12 commented on August 10, 2024

So, currently, the name mapping is described in https://github.com/DirectXMan12/k8s-prometheus-adapter/blob/master/docs/format.md, but there's a PR up (#46) to make things much more easily configurable.

from prometheus-adapter.

john-delivuk avatar john-delivuk commented on August 10, 2024

Thanks for getting back to me. I'm gonna also drop this here for others as it helped me out a ton.

From the Kubernetes Swagger spec for autoscaling/v2beta1
https://github.com/kubernetes/kubernetes/blob/v1.10.0-beta.1/api/swagger-spec/autoscaling_v2beta1.json

    "properties": {
     "type": {
      "type": "string",
      "description": "type is the type of metric source.  It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object."
     },
     "object": {
      "$ref": "v2beta1.ObjectMetricSource",
      "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)."
     },
     "pods": {
      "$ref": "v2beta1.PodsMetricSource",
      "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).  The values will be averaged together before being compared to the target value."
     },
     "resource": {
      "$ref": "v2beta1.ResourceMetricSource",
      "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source."
     },
     "external": {
      "$ref": "v2beta1.ExternalMetricSource",
      "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)."
     }
    }
   },```

External is being added in 1.10.

from prometheus-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.