carbon_clickhouse

pdk
Installs, configures and manages carbon-clickhouse
Maxim Fedotov

Maxim Fedotov

mfedotov

1,273 downloads

1,273 latest version

5.0 quality score

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
  • CentOS
    ,
    OracleLinux
    ,
    RedHat
    ,
    Scientific
    ,
    Debian
    ,
    Ubuntu

Start using this module

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.