Git Product home page Git Product logo

signalfx-agent-buildpack's Introduction

SignalFx Smart Agent CloudFoundry Buildpack

A CloudFoundry buildpack to install and run the SignalFx Smart Agent in PWS (Diego managed) apps. This will probably work for generic CloudFoundry apps as well, but it is only tested and supported on Pivotal Platform.

Installation

This buildpack is created automatically when the SignalFx Montioring tile is installed via Ops Manager on Pivotal Platform. That is the preferred installation route.

If you are using plain CloudFoundry and would like to install the buildpack, clone this repo and change to this directory, then run:

# Add buildpack for SignalFx Agent
$ cf create-buildpack signalfx_agent_buildpack . 99 --enable
# Basic setup, see Configuration for more envvars that can be set
$ cf set-env my-app SIGNALFX_ACCESS_TOKEN <my org token>
$ cf set-env my-app SIGNALFX_REALM <my org realm>


$ cf v3-push my-app -b signalfx_agent_buildpack -b <main_buildpack>

Configuration

The following only applies if you are using the "built-in" agent.yaml config provided by the buildpack. If you provide a custom agent.yaml in your application (and refer to it in the sidecar configuration), these might not work unless you have preserved the references to the envvars in the #from remote config blocks.

Set the following environment variables with cf set-env as applicable to configure this buildpack:

  • SIGNALFX_REALM - The realm to which to send metrics (e.g. us1)
  • SIGNALFX_INGEST_URL - The base URL of the SignalFx ingest server to use (automatically derived from SIGNALFX_REALM if set)
  • SIGNALFX_API_URL - The base URL of the SignalFx API server to use (automatically derived from SIGNALFX_REALM if set)
  • SIGNALFX_ACCESS_TOKEN - Your SignalFx org access token
  • SIGNALFX_AGENT_VERSION - Version of the SignalFx Agent to be configured (e.g. 4.19.2). The buildpack depends on features present in version 4.19.2+.

Sidecar Configuration

The recommended method for running the agent is to run it as a sidecar using the CloudFoundry sidecar functionality. Additional information can be found in the v3 API docs.

Here is an example application manifest.yml file that would run the agent as a sidecar:

applications:
  - name: my-app
    disk_quota: 1G
    instances: 1
    memory: 1G
    sidecars:
      - name: signalfx-agent
        process_types: ['web']
        command: '.signalfx/signalfx-agent/bin/signalfx-agent -config .signalfx/etc/agent.yaml'
        memory: 75MB

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.