Forge Home

carbon_clickhouse

Installs, configures and manages carbon-clickhouse

1,604 downloads

1,604 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.0 (latest)
released Oct 9th 2019
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.0 < 7.0.0
  • , , , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'mfedotov-carbon_clickhouse', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add mfedotov-carbon_clickhouse
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install mfedotov-carbon_clickhouse --version 1.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

mfedotov/carbon_clickhouse — version 1.0.0 Oct 9th 2019

puppet-carbon_clickhouse

Table of Contents

Description

The carbon_clickhouse module installs, configures and manages the carbon-clickhouse service.

Setup

Setup Requirements

This module requires toml gem, which is used to translate Hash configuration to carbon-clickhouse toml format configuration files. To install it you need to execute following command on your puppetmaster server:

sudo puppetserver gem install toml

Beginning with carbon_clickhouse

To install a carbon-clickhouse with the default options:

include 'carbon_clickhouse'

To customize carbon-clickhouse configuration, you must also pass in an override hash:

class { 'carbon_clickhouse':
  override_config => {
    'data' => {
      'path' => '/mnt/data/graphite/carbon-clickhouse'
    }
  }
}

If you want to customize clickhouse upload conguration, use upload_config option:

class { 'carbon_clickhouse':
  upload_config => {
    'upload.graphite_reverse' => {
      'type'    => 'points-reverse',
      'table'   => 'graphite.graphite_reverse',
      'threads' => 1,
      'url'     => "http://graphite:${clickhouse_graphite_password}@localhost:8123",
      'timeout' => '1m0s',
    },
    'upload.graphite_index'   => {
      'type'      => 'index',
      'table'     => 'graphite.graphite_index',
      'threads'   => 1,
      'url'       => "http://graphite:${clickhouse_graphite_password}@localhost:8123",
      'timeout'   => '1m0s',
      'cache-ttl' => '12h0m0s',
    },
    'upload.graphite_tagged'  => {
      'type'      => 'tagged',
      'table'     => 'graphite.graphite_tagged',
      'threads'   => 1,
      'url'       => "http://graphite:${clickhouse_graphite_password}@localhost:8123",
      'timeout'   => '1m0s',
      'cache-ttl' => '12h0m0s',
    }
  }
}

Reference

Classes

Public Classes

Private Classes

  • carbon_clickhouse::config: Private class for carbon-clickhouse configuration.
  • carbon_clickhouse::install: Private class for managing carbon-clickhouse package.
  • carbon_clickhouse::params: Private class for setting default carbon-clickhouse parameters.
  • carbon_clickhouse::service: Private class for managing the carbon-clickhouse service.

Functions

Limitations

For a list of supported operating systems, see metadata.json

Development

Please feel free to fork, modify, create issues, bug reports and pull requests.