cookbook 'boundary-meter', '~> 3.1.9'
boundary-meter (11) Versions 3.1.9 Follow1
Installs/Configures boundary-meter
cookbook 'boundary-meter', '~> 3.1.9', :supermarket
knife supermarket install boundary-meter
knife supermarket download boundary-meter
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
ruby
node['boundary_meter']['alt_configs'] = [{
'name' => 'secondary',
'token' => 'org_id:api_key'
}
]
or Boundary Premium
ruby
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.
Dependent cookbooks
apt >= 0.0.0 |
yum >= 3.2.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
3.1.9 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
3.1.9 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
3.1.9 failed this metric
FC064: Ensure issues_url is set in metadata: boundary-meter/metadata.rb:1
FC065: Ensure source_url is set in metadata: boundary-meter/metadata.rb:1
FC066: Ensure chef_version is set in metadata: boundary-meter/metadata.rb:1
FC069: Ensure standardized license defined in metadata: boundary-meter/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: boundary-meter/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: boundary-meter/providers/default.rb:27
FC085: Resource using new_resource.updated_by_last_action to converge resource: boundary-meter/providers/default.rb:30
FC085: Resource using new_resource.updated_by_last_action to converge resource: boundary-meter/providers/default.rb:37
FC085: Resource using new_resource.updated_by_last_action to converge resource: boundary-meter/providers/default.rb:39
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
3.1.9 passed this metric
Testing File Metric
3.1.9 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.1.9 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.1.9 failed this metric
3.1.9 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
3.1.9 failed this metric
FC064: Ensure issues_url is set in metadata: boundary-meter/metadata.rb:1
FC065: Ensure source_url is set in metadata: boundary-meter/metadata.rb:1
FC066: Ensure chef_version is set in metadata: boundary-meter/metadata.rb:1
FC069: Ensure standardized license defined in metadata: boundary-meter/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: boundary-meter/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: boundary-meter/providers/default.rb:27
FC085: Resource using new_resource.updated_by_last_action to converge resource: boundary-meter/providers/default.rb:30
FC085: Resource using new_resource.updated_by_last_action to converge resource: boundary-meter/providers/default.rb:37
FC085: Resource using new_resource.updated_by_last_action to converge resource: boundary-meter/providers/default.rb:39
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
3.1.9 passed this metric
Testing File Metric
3.1.9 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.1.9 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.1.9 failed this metric
FC065: Ensure source_url is set in metadata: boundary-meter/metadata.rb:1
FC066: Ensure chef_version is set in metadata: boundary-meter/metadata.rb:1
FC069: Ensure standardized license defined in metadata: boundary-meter/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: boundary-meter/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: boundary-meter/providers/default.rb:27
FC085: Resource using new_resource.updated_by_last_action to converge resource: boundary-meter/providers/default.rb:30
FC085: Resource using new_resource.updated_by_last_action to converge resource: boundary-meter/providers/default.rb:37
FC085: Resource using new_resource.updated_by_last_action to converge resource: boundary-meter/providers/default.rb:39
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
3.1.9 passed this metric
Testing File Metric
3.1.9 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.1.9 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.1.9 failed this metric
3.1.9 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number