Git Product home page Git Product logo

signalfx-cloudfoundry-meta-buildpack-decorator's Introduction

SignalFx Cloud Foundry Agent Buildpack Decorator

This is a decorator built for use with the Cloud Foundry meta-buildpack. The decorator installs the SignalFx collectd agent into the same droplet as the application being running. This is useful to monitor web servers running in the CF Garden environment.

Usage

First you have to add the meta-buildpack and this decorator to your Cloud Foundry environment. To add this decorator, download a release zip from Github and push it to CF with the create-buildpack command.

Configuration

Next, create a directory called .signalfx in your app that contains collectd configuration files specific to what you want to monitor. This buildpack is configured out of the box to report only specific metadata about the container and nothing else (e.g. no metrics for CPU, memory, network, etc.). Our Firehose nozzle sends basic container metrics (CPU, memory, and disk usage), which might be enough depending on your needs. If you do add back these to the collectd config, note that they will be double reported.

To configure the API token for SignalFx, add an envvar to your application manifest called SIGNALFX_ACCESS_TOKEN with that value.

If you would like to enable system metrics inside the containers (i.e. to be able to use the collectd dashboards to view your containers), set the envvar SIGNALFX_ENABLE_SYSTEM_METRICS to either true or yes. System metrics are by default disabled, so only the metrics specified by configuration in the .signalfx dir will be sent without this setting.

If you need to monitor an application through JMX inside your container, you can enable JMX support by adding the envvar ENABLE_JMX=true in your app manifest. Do not enable this unless you need it, since enabling Java in collectd causes it to consume significantly greater amounts of memory.

Versioning

This buildpack follows the versioning of the collectd-bundle. If there are multiple releases within a single release of the collectd bundle, they will be indicated by a .<num> suffix, where num starts with 1. The first release with a new collectd bundle does not have that suffix.

Dev Notes

This buildpack depends on our collectd bundle. Grab the desired bundle archive version (it's a .tar.gz file) and stick it in this dir. Then run make signalfx_decorator.zip to create the buildpack zip with that bundle.

signalfx-cloudfoundry-meta-buildpack-decorator's People

Contributors

jrcamp avatar keitwb 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.