Skip to content

An example project for shwocasing Gatling FatJars in combination with InfluxDB

Notifications You must be signed in to change notification settings

codepitbull/gatling-influxdb-fatjar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

#Gatling, InfluxDB and FatJars

Preparing the Project

There are a few things to remember when creating a Gatling FatJar:

  • Use props.dataDirectory("jar") to enable loading of resources from the classpath
  • There needs to be an empty class in src/test/scala because Gatling is doing a hardcoded check against the existence of target/test-classes when run from the IDE.

Building the FatJar

I use the maven-shade-plugin to create the FatJar. The version included in this project strips the META-INF-contents to avoid problems with signed JARs.

##Instructions to get InfluxDB running on Mac OS X brew install influxdb

After that open /usr/local/etc/influxdb.conf and check that the Graphite section looks like this:

[[graphite]]
   enabled = true
   bind-address = ":2003"
   database = "gatling"
   protocol = "tcp"

Fire up InfluxDB: influxd -config /usr/local/etc/influxdb.conf

Connect to it: influx

And then use the followoing command sequence:

  • use gatling
  • show series
  • select * from "gatling.basicsimulation.request_1_Redirect_1.ok.percentiles99-0";

About

An example project for shwocasing Gatling FatJars in combination with InfluxDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages