GithubHelp home page GithubHelp logo

isabella232 / boundary-meter_cookbook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from boundary/boundary-meter_cookbook

0.0 0.0 0.0 216 KB

Boundary Meter Chef Cookbook

Home Page: https://supermarket.getchef.com/cookbooks/boundary-meter

Ruby 94.08% HTML 5.92%

boundary-meter_cookbook's Introduction

The boundary-meter Cookbook

This cookbook is used to install and configure (via the Boundary API) the Boundary meter. To get things running, set your Boundary account's org id and API key in the attributes/default.rb and add boundary-meter::default to your host's run_list.

Dependencies

Dependencies and their requisite versions, when necessary, are specified in metadata.rb.

Configuration Options

API Keys

Setup your API keys in attributes/api.rb for Boundary Enterprise

default['boundary_meter']['token'] = 'org_id:api_key'

or Boundary Premium

default['boundary_meter']['token'] = 'api_token'
Boundary Meter Tags

By default, the cookbook sends the chef_environment as a meter tag to the Boundary service.

If your host is in EC2 or you are using Opsworks, it adds a few tags specific to those environments.

You can set more tags by manipulating the node['boundary_meter']['tags'] attribute.

Interfaces

The meter defaults to monitoring all interfaces. You can change this with the node['boundary_meter']['interfaces'] array:

node['boundary_meter']['interfaces'] = [ 'eth0', 'eth2' ]
Hostname

The Boundary meter defaults to using node['fqdn'] as the hostname. You can override this by setting node['boundary_meter']['hostname'] with a higher precedence then default.

Sending to Multiple Orgs

If you would like to "multiplex" your meter traffic to multiple Boundary orgs, we support this using a special variable in the Boundary meter named ALT_CONFIGS.

These can be set via the attribute node['boundary_meter']['alt_configs'] which is an array of hashes:

For Boundary Enterprise

node['boundary_meter']['alt_configs'] = [{
                                            'name' => 'secondary',
                                            'token' => 'org_id:api_key'
                                          }
                                         ]

or Boundary Premium

node['boundary_meter']['alt_configs'] = [{
                                            'name' => 'secondary',
                                            'token' => 'api_token'
                                          }
                                         ]

EC2

This cookbook includes automatic detection and tagging of your meter with various EC2 attributes such as security group and instance type.

OpsWorks

If you are using OpsWorks this cookbook should work out of the box (with the above dependencies). This cookbook also includes automatic detection and tagging of your meter with layers, stack name and applications if any exist.

boundary-meter_cookbook's People

Contributors

adamsb6 avatar busterb avatar drnic avatar finack avatar hectcastro avatar joewilliams avatar josacar avatar ohlol avatar pkwarren avatar sigil66 avatar wolf31o2 avatar zsol 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.