Forge Home

chronograf

Module to manage Chronograf

1,957 downloads

1,056 latest version

4.7 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.3 (latest)
  • 1.0.2
  • 1.0.0
released Sep 23rd 2021
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
  • Puppet >= 6.1.0 < 7.0.0
  • , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'kogitoapp-chronograf', '1.0.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add kogitoapp-chronograf
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install kogitoapp-chronograf --version 1.0.3

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

kogitoapp/chronograf — version 1.0.3 Sep 23rd 2021

Puppet module to manage Chronograf

Table of Contents

  1. Description
  2. Setup - The basics of getting started with chronograf
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module

Description

Installs, configures and manages Chronograf, the monitoring and visualization UI of the Tick stack.

Setup

What chronograf affects

Default configuration

  • manages GPG key, repository (default: manage_repo = true )

    • default: repo_location = https://repos.influxdata.com/ and repo_type = 'stable'
  • manages package

  • manages directories and configuration files (referring to templates)

    • Debian: /lib/systemd/system/chronograf.service

    • CentOS: /etc/systemd/system/chronograf.service

    • /etc/default/chronograf

  • starts service "chronograf" immediately (default: manage_service = true)

  • set up connection to influx and kapacitor upon request, also based on templates

    • /usr/share/chronograf/resources/

Setup Requirements

For an extensive list of requirements, see metadata.json.

Beginning with chronograf

The module comes along with several configuration files (see templates). Change configuration settings in according hiera level or via hash.

  • service-defaults.erb

    • following keys are supported to be added in single line mode
      • host = '0.0.0.0'
      • port = 8888
      • tls_certificate
      • token_secret
      • log_level ['error','warn','info','debug']
      • public_url
      • generic_client_id
      • generic_client_secret
      • generic_auth_url
      • generic_token_url
      • use_id_token ['true','false']
      • jwks_url
      • generic_api_url
      • generic_api_key
      • generic_scopes
      • generic_domains
      • generic_name
      • google_client_id
      • google_client_secret
      • google_domains
  • systemd.service.erb

  • With two defines setup the connection to influx and kapacitor.

Please refer to Chronograf documentation for the defaults used.

Usage

In combination with other influxdata module

  • when one of the other influxdata modules already handles GPG keys and repository
class { 'chronograf':
  manage_repo => false,
}
  • when chronograf shall handle GPG keys and repository
class { 'chronograf':
  manage_repo => true,
}

Example

class { 'chronograf':
  manage_repo     => true,
  host            => '127.0.0.90',
  tls_certificate => 'cert-bar',
  log_level       => 'info',
  use_id_token    => 'false',
}

chronograf::connection::influx { 'MyInfluxDB':
  ensure               => 'present',
  id                   => '10000',
  username             => 'telegraf',
  password             => 'metricsmetricsmetrics',
  url                  => 'http://localhost:8086',
  type                 => 'influx',
  insecure_skip_verify => false,
  default              => true,
  telegraf             => 'telegraf',
  organization         => 'example_org',
}

chronograf::connection::kapacitor { 'MyKapacitor':
  ensure       => 'present',
  id           => '10010',
  src_id       => '10010',
  url          => 'http://localhost:9092',
  active       => true,
  organization => 'example_org',
}

Reference

Please see document REFERENCE.md.

Limitations

For an extensive list of supported operating systems, see metadata.json.

Release Notes/Contributors/Etc.