Coder Social home page Coder Social logo

kogito-ops / puppet-chronograf Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 194 KB

A Puppet module to manage Chronograf.

Home Page: https://forge.puppet.com/kogitoapp/chronograf

License: MIT License

Ruby 54.23% Puppet 41.54% HTML 3.60% Dockerfile 0.63%
puppet-module chronograf

puppet-chronograf's Introduction

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.

puppet-chronograf's People

Contributors

zloesabo avatar danielsreichenbach avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.