Using Gatling with InfluxDB

856 views
Skip to first unread message

tinac...@hotmail.com

unread,
Dec 21, 2017, 10:22:54 AM12/21/17
to Gatling User Group
Hi,

I'm following -> https://gatling.io/docs/2.3/realtime_monitoring/


If I'm using InfluxDB as a datasource I don't need Graphite aswell? Is this correct?


InFluxDB is installed on my Jenkins box -
10.88.20.67
where the Gatling Load is run from :-

[root@doc-lab-demo 457]# influx
Connected to http://localhost:8086 version 1.4.2
InfluxDB shell version: 1.4.2
> show databases
name: databases
name
----
_internal
>



gatling.conf is configured for the following :-


data {
writers = [console, file, graphite] # The list of DataWriters to which Gatling write simulation data (currently supported : console, file, graphite, jdbc)
....

graphite {
#light = false # only send the all* stats
host = "10.88.20.67" # The host where the Carbon server is located
port = 2003 # The port to which the Carbon server listens to (2003 is default for plaintext, 2004 is default for pickle)
protocol = "tcp" # The protocol used to send data to Carbon (currently supported : "tcp", "udp")
rootPathPrefix = "gatling" # The common prefix of all metrics sent to Graphite
#bufferSize = 8192 # GraphiteDataWriter's internal data buffer size, in bytes
#writeInterval = 1 # GraphiteDataWriter's write interval, in seconds


 /etc/influxdb/influxdb.conf  is configured for the following :-

[[graphite]]
  # Determines whether the graphite endpoint is enabled.
   enabled = true
   database = "gatlingdb"
  # retention-policy = ""
   bind-address = ":2003"
   protocol = "tcp"
  # consistency-level = "one"
......
   templates = [
           "gatling.*.*.*.* measurement.simulation.request.status.field",
           "gatling.*.users.*.* measurement.simulation.measurement.request.field"
   ]



I've run the load a few times now via Jenkins but as you can see it is not listing the gatlingdb database in influxDB.

Am I missing a step somewhere?
How can I see logs for it? I tried debug in logback.xml, but this shows nothing.

I want to see the stats in the influxdb database before I move onto Grafana.

Aderson Bastos

unread,
Dec 28, 2017, 1:10:24 PM12/28/17
to Gatling User Group
Try to restart the Influxdb. It's necessary if you change the influxdb.conf

tinac...@hotmail.com

unread,
Jan 3, 2018, 4:15:16 AM1/3/18
to Gatling User Group
I have tried restating influxdb loads of times already :-

sudo service influxdb stop
sudo service influxdb status
sudo service influxdb start
sudo service influxdb status

Are there any logs I can look at to see if anything is happening?

tinac...@hotmail.com

unread,
Jan 3, 2018, 9:20:29 AM1/3/18
to Gatling User Group
This issue is solved....it wasn't picking up my conf directory from build.gradle...I had to add the following :-

sourceSets {
simulations {
scala {
srcDirs = ['src/test/gatling/user-files/simulations']
}

resources {
srcDirs = ['src/test/gatling/user-files/simulations', 'src/test/gatling/user-files/data', 'src/test/gatling/user-files/body', 'src/test/gatling/conf']
}
compileClasspath += configurations.gatling
}
}

Thanks For the Help,
Tina.




On Thursday, 21 December 2017 15:22:54 UTC, tinac...@hotmail.com wrote:

roshni...@gmail.com

unread,
Sep 26, 2018, 7:59:38 AM9/26/18
to Gatling User Group
hii
i am also getting same issue that my gatling db is not forming in influxdb. Can you explain where i need to edit this

vaibhav sharma

unread,
Dec 24, 2019, 8:23:09 AM12/24/19
to Gatling User Group
Hi, Can you tell me where can I put these changes in my framework of gatling?
Reply all
Reply to author
Forward
0 new messages