Forge Home

thanos

This module install Thanos and can manage it's components

10,406 downloads

440 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.6.0 (latest)
  • 1.5.1
  • 1.5.0
  • 1.4.0
  • 1.3.0
  • 1.2.0
  • 1.1.0
  • 1.0.2
  • 1.0.1
  • 1.0.0
  • 0.4.2
  • 0.4.1
  • 0.4.0
  • 0.3.0
  • 0.2.1
  • 0.2.0
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0 (deleted)
released Feb 16th 2020
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 'maeq-thanos', '0.2.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add maeq-thanos
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install maeq-thanos --version 0.2.1

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

maeq/thanos — version 0.2.1 Feb 16th 2020

maeq-thanos

Build Status Travis Build Status AppVeyor Puppet Forge Puppet Forge - downloads Puppet Forge - endorsement Puppet Forge - scores Apache-2 License

Table of Contents

  1. Description
  2. Usage
  3. Limitations
  4. Development

Description

This module automates the install of Thanos and it's components into a service.

Usage

For more information see REFERENCE.md.

Install Thanos

Puppet

    class { 'thanos':
      version => '0.10.1'
    }

Hiera Data

    include thanos
    thanos::version: '0.10.1'

Thanos Sidecar

Puppet

    class { 'thanos':
      version        => '0.10.1',
      manage_sidecar => true,
    }

OR

    class { 'thanos':
      version => '0.10.1'
    }
    class { 'thanos-sidecar':
      bin_path => '/usr/local/bin/thanos',
    }

Hiera Data

    include thanos
    thanos::manage_sidecar: true

OR

    include thanos
    include thanos::sidecar
    thanos::version: '0.10.1'
    thanos::bin_path: '/usr/local/bin/thanos'

Thanos Query

Puppet

    class { 'thanos-query':
      bin_path => '/usr/local/bin/thanos',
      stores   => [
        'sidecar:10901',
        'store:10901',
      ]
    }

Hiera Data

    include thanos
    thanos::manage_query: true
    thanos::query::stores:
      - 'sidecar:10901'
      - 'store:10901'

Thanos Rule

Puppet

    class { 'thanos-rule':
      bin_path => '/usr/local/bin/thanos',
      queries  => [
        'query:10901',
      ]
    }

Hiera Data

    include thanos
    thanos::manage_rule: true
    thanos::rule::queries:
      - 'query:10901'

Thanos Store

Puppet

    class { 'thanos-store':
      bin_path             => '/usr/local/bin/thanos',
      objstore_config_file => '/etc/thanos/storage.yaml',
    }

Hiera Data

    include thanos
    thanos::manage_store: true

Thanos Compact

Puppet

    class { 'thanos-compact':
      bin_path             => '/usr/local/bin/thanos',
      objstore_config_file => '/etc/thanos/storage.yaml',
    }

Hiera Data

    include thanos
    thanos::manage_compact: true

Thanos Downsample

Puppet

    class { 'thanos-downsample':
      bin_path             => '/usr/local/bin/thanos',
      objstore_config_file => '/etc/thanos/storage.yaml',
    }

Hiera Data

    include thanos
    thanos::manage_downsample: true

Manage Storage config

For more configuration information see Thasos Storage configuration page.

Puppet

    thanos::storage { '/etc/thanos/storage.yaml':
      ensure => 'present',
      type   => 'FILESYSTEM',
      config => {
        directory => '/data'
      }
    }

Yaml

    include thanos
    thanos::manage_storage_config: true
    thanos::storage_config_file: '/etc/thanos/storage.yaml'
    thanos::storage_config:
      ensure: 'present'
      type: 'FILESYSTEM'
      config:
        directory: '/data'

Manage Tracing config

For more configuration information see Thasos Tracing configuration page.

Puppet

    thanos::tracing { '/etc/thanos/tracing.yaml':
      ensure => 'present',
      type   => 'JAEGER',
      config => {
        service_name              => '',
        disabled                  => false,
        rpc_metrics               => false,
        tags                      => '',
        sampler_type              => '',
        sampler_param             => 0,
        sampler_manager_host_port => '',
        sampler_max_operations    => 0,
        sampler_refresh_interval  => '0s',
        reporter_max_queue_size   => 0,
        reporter_flush_interval   => '0s',
        reporter_log_spans        => false,
        endpoint                  => '',
        user                      => '',
        password                  => '',
        agent_host                => '',
        agent_port                => 0,
      }
    }

Yaml

    include thanos
    thanos::manage_tracing_config: true
    thanos::tracing_config_file: '/etc/thanos/tracing.yaml'
    thanos::tracing_config:
      ensure: 'present'
      type: 'JAEGER'
      config:
        service_name: ''
        disabled: false
        rpc_metrics: false
        tags: ''
        sampler_type: ''
        sampler_param: 0
        sampler_manager_host_port: ''
        sampler_max_operations: 0
        sampler_refresh_interval: '0s'
        reporter_max_queue_size: 0
        reporter_flush_interval: '0s'
        reporter_log_spans: false
        endpoint: ''
        user: ''
        password: ''
        agent_host: ''
        agent_port: 0

Limitations

Don't manage Thanos experimental features, like :

  • thanos receive command

Only support, Thanos supported OS. See Thanos releases page

Development

This project contains tests for rspec-puppet.

Quickstart to run all linter and unit tests:

bundle install --path .vendor/
bundle exec rake test