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

prometheus-platform (5) Versions 1.1.0

Cookbook used to install and configure prometheus

Policyfile
Berkshelf
Knife
cookbook 'prometheus-platform', '= 1.1.0', :supermarket
cookbook 'prometheus-platform', '= 1.1.0'
knife supermarket install prometheus-platform
knife supermarket download prometheus-platform
README
Dependencies
Changelog
Quality 43%

Prometheus Platform

Description

Prometheus is an Open-source systems monitoring and alerting toolkit originally
built at SoundCloud.

This cookbook is designed to install and configure Prometheus with its
Alertmanager and all exporters listed on https://prometheus.io/download.
Others, specific exporters are out of the scope of this cookbook.

Requirements

Cookbooks and gems

Declared in [metadata.rb](metadata.rb) and in [Gemfile](Gemfile).

Platforms

Should works on every Linux distro managed by systemd, possibly with minor
adjustments. Tested on CentOS 7.

Usage

Test

This cookbook is tested through the installation of 2 nodes in docker hosts:

  • a master with Prometheus server, Alertmanager, Pushgateway, Node exporter and Statsd exporter
  • a worker with Node exporter and Statsd exporter.

This uses kitchen, docker and some monkey-patching.

For more information, see .kitchen.yml and test directory.

Attributes

Configuration is done by overriding default attributes. All configuration keys
have a default defined in:

[attributes/default.rb](attributes/default.rb).

Please read it to have a comprehensive view of what and how you can configure
this cookbook behavior.

You can also look at the role written for the tests to have an example on how
to configure this cookbook:
[server](test/integration/roles/prometheus-platform-server.json) and
[node](test/integration/roles/prometheus-platform.json).

Recipes

default

Include all others recipes.

user

Create user/group used by Prometheus

install

Install all components with sub-attribute 'install?' as true.

scrapers

Prepare scrape_configs configuration from scrapers attributes. Use
cluster-search to create a dynamic "static_configs".

config

Generate and deploy configuration for all components.

Also generate the alerting and recording rules for Prometheus.

service

Deploy systemd units for all components.

Resources/Providers

None.

Changelog

Available in [CHANGELOG.md](CHANGELOG.md).

Contributing

Please read carefully [CONTRIBUTING.md](CONTRIBUTING.md) before making a merge
request.

License and Author

Copyright (c) 2016-2017 Sam4Mobile, 2017 Make.org

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

cluster-search >= 0.0.0
ark >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Changelog

1.1.0

Main:

  • add default config for scrapers
  • change default data directories to /var/opt
  • update default version of components:
    • prometheus to 1.7.2
    • blackbox to 0.9.1
    • alertmanager to 0.9.1

Tests:

  • fix rubocop on heredoc delimiters

1.0.0

Initial version:

Collaborator Number Metric
            

1.1.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

1.1.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
            

1.1.0 passed this metric

License Metric
            

1.1.0 passed this metric

No Binaries Metric
            

1.1.0 passed this metric

Testing File Metric
            

1.1.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
            

1.1.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