Git Product home page Git Product logo

tf-docker-tick_stack's Introduction

Using terraform with docker to build a TICK stack

Background:

I got bored one night and wanted to see if it was hard to use docker with terraform instead of just running the docker commands. After a while I really like the terraform state with docker because I could make a small change and re-run terraform apply to make a real time fixes.

Requirements

  1. Terraform
  2. Docker

Getting started

Clone the repo https://github.com/digikin/tf-docker-tick_stack.git and change into the directory.
You will have to change the locals variable on line 76 to whatever your absolute path is in your environment.

Commands

  1. terraform init
  2. terraform plan
  3. terraform apply then type yes -> Enter a value: yes

Chronograf and dashboards

I have telegraf configured to pull all the docker metrics but I couldn't figure out how to automatically get the docker.json dashboard to autopopulate.

Visit

http://localhost:8888

Click the dashboard button on the left menu.

button

Select Import Dashboard at the top right menu.

import

Upload the docker.json file included in the repo under tf-docker-tick_stack/config/docker.json

Enjoy!!

dashboard

Cleanup

  1. terraform destroy then type yes -> Enter a value: yes

tf-docker-tick_stack's People

Contributors

digikin avatar

Stargazers

 avatar

Watchers

 avatar  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.