Coder Social home page Coder Social logo

agarcia-oss / wavefront-kubernetes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wavefronthq/wavefront-kubernetes

0.0 0.0 0.0 68 KB

Kubernetes definitions and templates for Wavefront

License: Apache License 2.0

HCL 75.88% Dockerfile 24.12%

wavefront-kubernetes's Introduction

wavefront-kubernetes

This repository contains definitions and templates for monitoring Kubernetes using Wavefront.

Wavefront Proxy (required)

  1. Deploy a Wavefront Proxy
    • Update YOUR_CLUSTER and YOUR_API_TOKEN according to your instance of Wavefront

Kubernetes system metrics

Refer to the Wavefront Kubernetes Integration for core Kubernetes monitoring.

Pod monitoring

Config Map

Config Maps allow for easy management and standardization of monitoring configuration and settings for any application and service. Some sample config maps are provided, and can be expanded upon. The sample deployment definitions for monitoring will reference these config maps, which are all Telegraf plugin configuration snippets. Sample Telegraf Config Maps

Usage: Sidecar container

Use the Telegraf Sidecar container template to add Telegraf as a sidecar to your existing pod definitions

  • Change references to APPLICATION to match your application name
  • Optionally update the METRIC_SOURCE_NAME environment variable to specify a metric source (default is to use Node name)
  • Update the config map reference to match the approrpriate deployed config map
  • :alpine tag for the image can also be used (other version tags also supported)

Usage: Standalone pod

When sidecar monitoring is not practical, use the standard Telegraf Deployment template to monitor the service. Prometheus endpoints can be scraped using this method.

  • Change references to APPLICATION to match your application name
  • Optionally update the METRIC_SOURCE_NAME environment variable to specify a metric source (default is to use Node name)
  • Update the config map reference to match the approrpriate deployed config map
  • :alpine tag for the image can also be used (other version tags also supported)

Usage: Prometheus scraping over a Kubernetes service

You may have want to monitor all individual endpoints (pods) associated with a given Kubernetes service that emit Prometheus metrics. Because the name, and number of endpoints can change this needs to be dynamic. The Telegraf Prometheus plugin, can be used in this situation with the following configuration setup.

  • Create a new Headless service in Kubernetes where you expose your Prometheus http-metrics port
    • clusterIP needs to be set to None
    • type should not be specified
    • make sure your service selector will select the required pods
    • you only need to expose the Prometheus http-metrics port to be scraped

Sample service definition:

kind: Service
apiVersion: v1
metadata:
  name: my-service-metrics
spec:
  selector:
    app: MyApp
  clusterIp: None
  ports:
  - name: http-metrics
    port: 8080

wavefront-kubernetes's People

Contributors

akodali18 avatar helen-shao avatar josephgee avatar m25n avatar mmichael avatar mts57017 avatar mzeier avatar priyaselvaganesan avatar puckpuck avatar skajagar avatar sreeni-anagani avatar srinivas-kandula avatar sushantdewan123 avatar vikramraman 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.