Git Product home page Git Product logo

cadvisor-integration's Introduction

Build Status Docker Repository on Quay.io

cadvisor-integration

Overview

This tool will auto discover kubernetes cluster nodes and send container and machine metrics to SignalFx. You can deploy it to run in a single pod within a Kubernetes cluster where it will collect data from the cadvisor container resource usage and performance analysis agent (that is integrated into the kubelet binary) using cluster member permissions only.

Installation

Step 1 - Create a deployment configuration based on the following example cadvisor-signalfx.yaml file. Note: Change the <API_TOKEN> based on your SignalFx account and the <CLUSTER_NAME> based on what you want to call this kubernetes cluster.

apiVersion: v1
kind: ReplicationController
metadata:
  name: "cadvisor-signalfx"
spec:
  replicas: 1
  selector:
    app: "cadvisor-signalfx"
  template:
    metadata:
      name: "cadvisor-signalfx"
      labels:
        app: "cadvisor-signalfx"
    spec:
      containers:
      - name: "cadvisor-signalfx"
        image: "quay.io/signalfx/cadvisor-integration:latest"
        env:
        - name: SFX_SCRAPPER_API_TOKEN
          value: <API TOKEN>
        - name: SFX_SCRAPPER_CLUSTER_NAME
          value: <CLUSTER NAME>
        - name: SFX_SCRAPPER_SEND_RATE
          value: 5s

Step 2 - Deploy to your cluster. e.g. kubectl create -f cadvisor-signalfx.yaml

Full options list

Option Default val. Comment Env. Var.
--ingestURL "https://ingest.signalfx.com" The SignalFx ingest URL. $SFX_SCRAPPER_INGEST_URL
--apiToken The SignalFx API token. $SFX_SCRAPPER_API_TOKEN
--clusterName The dimension name for this kubernetes cluster. $SFX_SCRAPPER_CLUSTER_NAME
--cadvisorPort 4194 The port on which the kubernetes cAdvisor listens. $SFX_SCRAPPER_CADVISOR_PORT
--sendRate "1s" The rate at which data is queried from cAdvisor and sent to SignalFx. Possible values: [10s 30s 1m 5m 1h 1s 5s] $SFX_SCRAPPER_SEND_RATE
--nodeServiceDiscoveryRate "5m" The rate at which nodes and services will be rediscovered. Possible values: [1m 3m 5m 10m 15m 20m] $SFX_SCRAPPER_NODE_SERVICE_DISCOVERY_RATE

Troubleshooting

The default configuration for this integration uses the credentials of the pod to communicate securely with the kubernetes apiserver. For more details see "Accessing the API from a Pod" section at http://kubernetes.io/docs/user-guide/accessing-the-cluster

However, if the kubernetes cluster is not setup to support accessing the api from a pod then an extra configuration is required. Add an environment variable for the IP (and port, if necessary) of the Kubernetes Master Node API to the very end of the cadvisor-signalfx.yaml file.

Example:

name:  SFX_SCRAPPER_KUBERNETES_URL
value: <http(s)://KUBERNETES_MASTER_NODE_IP_ADDR:port>

License

This tool is licensed under the Apache License, Version 2.0. See LICENSE for full license text.

cadvisor-integration's People

Contributors

mdubbyap avatar molner avatar cep21 avatar beccatortell avatar rata avatar

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.