Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconmodules
file-type-iconchronograf-security-group-rules
file-type-iconchronograf-server
file-type-iconinfluxdb-cluster
file-type-iconinfluxdb-commons
file-type-iconinfluxdb-iam-policies
file-type-iconinfluxdb-security-group-rules
file-type-iconinstall-chronograf
file-type-iconinstall-influxdb
file-type-iconinstall-kapacitor
file-type-iconinstall-telegraf
file-type-iconkapacitor-security-group-rules
file-type-iconkapacitor-server
file-type-iconload-balancer-target-group
file-type-iconload-balancer
file-type-iconrun-chronograf
file-type-iconrun-influxdb
file-type-iconrun-kapacitor
file-type-iconREADME.md
file-type-iconrun-kapacitor
file-type-iconrun-telegraf
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconCONTRIBUTING.md
file-type-iconLICENSE
file-type-iconNOTICE
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvariables.tf

Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconmodules
file-type-iconchronograf-security-group-rules
file-type-iconchronograf-server
file-type-iconinfluxdb-cluster
file-type-iconinfluxdb-commons
file-type-iconinfluxdb-iam-policies
file-type-iconinfluxdb-security-group-rules
file-type-iconinstall-chronograf
file-type-iconinstall-influxdb
file-type-iconinstall-kapacitor
file-type-iconinstall-telegraf
file-type-iconkapacitor-security-group-rules
file-type-iconkapacitor-server
file-type-iconload-balancer-target-group
file-type-iconload-balancer
file-type-iconrun-chronograf
file-type-iconrun-influxdb
file-type-iconrun-kapacitor
file-type-iconREADME.md
file-type-iconrun-kapacitor
file-type-iconrun-telegraf
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconCONTRIBUTING.md
file-type-iconLICENSE
file-type-iconNOTICE
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvariables.tf
InfluxDB

InfluxDB

Deploy an InfluxDB cluster. Supports automatic bootstrapping and auto healing.

Code Preview

Preview the Code

mobile file icon

README.md

down

Kapacitor Run Script

This folder contains a script for configuring and initializing Kapacitor on an AWS server. This script has been tested on the following operating systems:

  • Ubuntu 18.04
  • Amazon Linux 2

There is a good chance it will work on other flavors of Debian, CentOS, and RHEL as well.

Quick start

This script assumes you installed it, plus all of its dependencies (including Kapacitor itself), using the install-kapacitor module.

This will:

  1. Fill out the templated configuration file with user supplied values.

  2. Start Kapacitor on the machine.

We recommend using the run-kapacitor command as part of User Data, so that it executes when the EC2 Instance is first booting.

See the examples folder for fully-working sample code.

Command line Arguments

Run run-kapacitor --help to see all available arguments.

Usage: run-kapacitor [options]

This script can be used to configure and initialize Kapacitor. This script has been tested with Ubuntu 18.04 and Amazon Linux 2.

Options:

  --auto-fill   Search the Kapacitor config file for KEY and replace it with VALUE. May be repeated.

Example:

  run-kapacitor --auto-fill '<__HOST_NAME__>=0.0.0.0' --auto-fill '<__INFLUXDB_URL__>=http://localhost:8086'

Command line Arguments

Run run-kapacitor --help to see all available arguments.

Usage: run-kapacitor [options]

This script can be used to configure and initialize Kapacitor. This script has been tested with Ubuntu 18.04 and Amazon Linux 2.

Options:

  --auto-fill   Search the Kapacitor config file for KEY and replace it with VALUE. May be repeated.

Example:

  run-kapacitor --auto-fill '<__HOST_NAME__>0.0.0.0' --auto-fill '<__INFLUXDB_URL__>=http://localhost:8086'

Debugging tips and tricks

Some tips and tricks for debugging issues with your Kapacitor agent:

  • Use systemctl status kapacitor to see if systemd thinks the Kapacitor process is running.

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?