Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconchronograf-ami
file-type-iconinfluxdb-ami
file-type-iconinfluxdb-cluster-simple
file-type-iconkapacitor-ami
file-type-iconlocal-mocks
file-type-iconREADME.md
file-type-iconaws.sh
file-type-iconentrypoint.sh
file-type-iconinfluxdb-common.sh
file-type-iconmount-volume.sh
file-type-icontelegraf-ami
file-type-icontick-ami
file-type-icontick-multi-cluster
file-type-icontick-single-cluster
file-type-iconmodules
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-iconchronograf-ami
file-type-iconinfluxdb-ami
file-type-iconinfluxdb-cluster-simple
file-type-iconkapacitor-ami
file-type-iconlocal-mocks
file-type-iconREADME.md
file-type-iconaws.sh
file-type-iconentrypoint.sh
file-type-iconinfluxdb-common.sh
file-type-iconmount-volume.sh
file-type-icontelegraf-ami
file-type-icontick-ami
file-type-icontick-multi-cluster
file-type-icontick-single-cluster
file-type-iconmodules
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

Local mocks

This folder contains some mocks that make it possible to run and test InfluxDB locally, using Docker and Docker Compose. The mocks here replace external dependencies, such as EC2 metadata and AWS API calls, with mocks that work locally. This is solely to make testing and iterating on the code faster and easier and should NOT be used in production!

Quick start

First, use the Packer template in the influxdb-ami example to build a Docker image with InfluxDB installed on Ubuntu:

packer build -only=influxdb-docker-ubuntu influxdb.json

To run the Docker image, head into one of the examples/influxdb-xxx/local-test folders and run:

docker-compose up

Alternatively, to create an Amazon Linux 2 Docker image:

packer build -only=influxdb-docker-amazon-linux influxdb.json

And to run it:

OS_NAME=amazon-linux docker-compose up

Wait 10-15 seconds and then run the influx CLI without any arguments to connect! No credentials are required to login.

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?