Code Monkey home page Code Monkey logo

gatlinginfluxgrafana's Introduction

GatlingInfluxGrafana

Gatling

InfluxDB

Grafana

An easy to follow guide that will help you setup Gatling and visualize the results live with  InfluxDB and Grafana.

Installation
Config/Setup

PreRequisite Installation

Mac OSX (super easy)

InfluxDB:
brew install influxdb

Grafana:
brew install grafana/grafana/grafana

Gatling:
Zip Bundle Link

Windows (very difficult)

InfluxDB:

Since InfluxDB does not provide Windows .exe's, the source must be compiled from source from GitHub. This requires installing Go as well as Git

Installing Git on Windows

  • Get Windows Git Exe from git-scm.com/downloads and run installer
  • Add git to the windows path by running SET %PATH% = %PATH%;C:\Program Files\Git\cmd from Command Prompt
  • Ensure that git and your path are properly setup by running git --version from Command Prompt

Installing Go in Windows

  • Get Windows Go Exe from https://golang.org/dl/ and run installer
  • Go should by default be installed directly in C:\Go and accordingly update your PATH variable
  • If this is not the case, add Go to your path by running SET %PATH% = %PATH%;C:\Go\bin and place the Go distribution in C:\
  • Create a projects directory under C:\Go\ and make sure GOPATH is set to C:\Go\projects

Setting up InfluxDB

Usually the rest should be pretty straight forward. You would run go get github.com/influxdb/influxdb to get the latest, run some go install commands, and you would be on your happy way. However, at the time of putting together this Gatling/Influx/Grafana stack, the latest version of master on InfluxDB had a bug with a breaking change in one of its dependencies. I was unable to figure out a clean way to use go get and specify a specific branch (and was clearly not the only person who ran into this issue with Influx), so I came up with a work around. Hold on to your seats:

  • Run go get github.com/influxdb/influxdb.
    This will populate your C:\Go\ directory with some stuff, and more importantly, will populate C:\Go\projects\src\github.com\influxdata with a folder called influxdb. This folder is an exact copy of the master version of InfluxDB.

  • Delete influxdb and in its place clone the 0.13 branch of InfluxDB. git clone -b 0.13 https://github.com/influxdata/influxdb.git (At the time of writing this .13 was the latest stable version of InfluxDB and it also worked with the version of Grafana that I used)

  • Everything else that resulted from go get github.com/influxdb/influxdb should be the same with the exception of us swapping the master source code with the .13 branch source code

  • Make sure you are inside the the influxdb folder
    cd C:\Go\projects\src\github.com\influxdata\influxdb and run
    go get -u -f ./... and then
    go build ./...

    If all the stars in the universe aligned for you today, then you should have influxdb installed

    The executables should be in C:\Go\projects\bin\

    Run influxd.exe (or update your PATH to include C:\Go\projects\bin\ and run influxd) and navigate to http://localhost:8083/. You should see the InfluxDB Web Interface

Gatling

Zip Bundle Link

  • Copy the gatling-charts-highcharts-bundle-2.2.2 folder directly under your C drive (C:\gatling-charts-highcharts-bundle)

  • Set GATLING_HOME to C:\gatling-charts-highcharts-bundle-2.2.2

  • Update your Path set PATH=%PATH%;%GATLING_HOME%\bin

Grafana

Download the Windows zip containing the exe from Grafana and run the installer

Configuration and Setup

gatlinginfluxgrafana's People

Contributors

tzinov15 avatar

Watchers

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