Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

librato_metrics (3) Versions 0.1.0

Provides LWRPs to manage Librato Metrics.

Policyfile
Berkshelf
Knife
cookbook 'librato_metrics', '= 0.1.0', :supermarket
cookbook 'librato_metrics', '= 0.1.0'
knife supermarket install librato_metrics
knife supermarket download librato_metrics
README
Dependencies
Quality -%

Description

Provides a LWRP to manage Librato Metrics instruments.

Requirements

Librato Metrics account credentials.

Attributes

default.librato_metrics.email - Librato Metrics account email

default.librato_metrics.token - Librato Metrics account API token

Usage

Create

An instrument with a single metric stream:

librato_metrics_instrument "example" do
  metric "foo"
  source "*"
  group_function "average"
end

An instrument with a many 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

Todo

  • Instrument listing pagination
  • Delete an instrument

License and Authors

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.

No quality metric results found