cookbook 'librato_metrics', '~> 0.3.0'
librato_metrics (3) Versions 0.3.0 Follow1
Provides LWRPs to manage Librato Metrics.
cookbook 'librato_metrics', '~> 0.3.0', :supermarket
knife supermarket install librato_metrics
knife supermarket download librato_metrics
Description
Provides LWRPs to manage Librato Metrics.
Requirements
Librato Metrics account credentials.
Attributes
default.librato_metrics.email
- Librato Metrics account email
default.librato_metrics.token
- Librato Metrics account API token
Usage
Instrument
Create
An instrument with a single metric stream:
librato_metrics_instrument "example" do metric "foo" source "*" group_function "average" end
An instrument with multiple metric streams:
librato_metrics_instrument "example" do streams([ { "metric" => "foo", "source" => "*", "group_function" => "sum" }, { "metric" => "bar", "source" => "i-*", "group_function" => "breakout" } ]) end
Update
Keep an instrument updated (Chef search results etc.):
librato_metrics_instrument "example" do streams([ { "metric" => "foo", "source" => "*", "group_function" => "average" }, { "metric" => "bar", "source" => "*.domain.com", "group_function" => "sum" } ]) action :update end
It's common to create an instrument and ensure it stays up-to-date:
action [:create, :update]
Add
Add a metric stream to an existing instrument:
librato_metrics_instrument "example" do metric "super" source "*.sub.domain.com" group_function "sum" action :add end
Dashboard
Create
A dashboard with a single instrument:
librato_metrics_dashboard "example" do instrument "example" end
A dashboard with multiple instruments:
librato_metrics_dashboard "example" do instruments([ "example", "foo", "bar" ]) end
Update
Keep a dashboard updated (Chef search results etc.):
librato_metrics_dashboard "example" do instruments([ "example", "foo", "bar", "baz" ]) action :update end
It's common to create a dashboard and ensure it stays up-to-date:
action [:create, :update]
Add
Add an instrument to an existing dashboard:
librato_metrics_dashboard "example" do instrument "qux" action :add end
Metric
Update
Customize a metric:
librato_metrics_metric "example" do display_name "example metric" description "example metric for readme" attributes("display_units_long" => "count") end
Delete
Delete a metric:
librato_metrics_metric "example" do action :delete end
Todo
- Instrument listing pagination
- Delete an instrument
License and Authors
Author:: Sean Porter portertech@gmail.com
Copyright:: 2012, Sean Porter Consulting
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.3.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.3.0 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
0.3.0 failed this metric
FC064: Ensure issues_url is set in metadata: librato_metrics/metadata.rb:1
FC065: Ensure source_url is set in metadata: librato_metrics/metadata.rb:1
FC066: Ensure chef_version is set in metadata: librato_metrics/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: librato_metrics/metadata.rb:1
FC069: Ensure standardized license defined in metadata: librato_metrics/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: librato_metrics/resources/dashboard.rb:1
FC074: LWRP should use DSL to define resource's default action: librato_metrics/resources/instrument.rb:1
FC074: LWRP should use DSL to define resource's default action: librato_metrics/resources/metric.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/dashboard.rb:49
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/dashboard.rb:59
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/dashboard.rb:69
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/instrument.rb:41
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/instrument.rb:51
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/instrument.rb:61
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/metric.rb:35
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/metric.rb:45
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.3.0 passed this metric
Testing File Metric
0.3.0 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
0.3.0 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
0.3.0 failed this metric
0.3.0 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
0.3.0 failed this metric
FC064: Ensure issues_url is set in metadata: librato_metrics/metadata.rb:1
FC065: Ensure source_url is set in metadata: librato_metrics/metadata.rb:1
FC066: Ensure chef_version is set in metadata: librato_metrics/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: librato_metrics/metadata.rb:1
FC069: Ensure standardized license defined in metadata: librato_metrics/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: librato_metrics/resources/dashboard.rb:1
FC074: LWRP should use DSL to define resource's default action: librato_metrics/resources/instrument.rb:1
FC074: LWRP should use DSL to define resource's default action: librato_metrics/resources/metric.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/dashboard.rb:49
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/dashboard.rb:59
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/dashboard.rb:69
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/instrument.rb:41
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/instrument.rb:51
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/instrument.rb:61
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/metric.rb:35
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/metric.rb:45
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.3.0 passed this metric
Testing File Metric
0.3.0 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
0.3.0 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
0.3.0 failed this metric
FC065: Ensure source_url is set in metadata: librato_metrics/metadata.rb:1
FC066: Ensure chef_version is set in metadata: librato_metrics/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: librato_metrics/metadata.rb:1
FC069: Ensure standardized license defined in metadata: librato_metrics/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: librato_metrics/resources/dashboard.rb:1
FC074: LWRP should use DSL to define resource's default action: librato_metrics/resources/instrument.rb:1
FC074: LWRP should use DSL to define resource's default action: librato_metrics/resources/metric.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/dashboard.rb:49
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/dashboard.rb:59
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/dashboard.rb:69
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/instrument.rb:41
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/instrument.rb:51
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/instrument.rb:61
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/metric.rb:35
FC085: Resource using new_resource.updated_by_last_action to converge resource: librato_metrics/providers/metric.rb:45
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.3.0 passed this metric
Testing File Metric
0.3.0 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
0.3.0 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
0.3.0 failed this metric
0.3.0 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