#Gatling, InfluxDB and FatJars
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.
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";