Gatling -> Grafana configuration

Hi Team,

I’m running grafana and influxdb 1.7 on individual docker containers on my local machine. When i run the Gatling test didn’t get the results on Influx db. Guide me on this.

My containers running IP

My Gatling.conf

graphite {
  host = ""
  port = 2003
  light = false # only send the all* stats
  protocol = "tcp" # the protocol used to send data to Carbon (currently supported : "tcp", "udp")
  rootPathPrefix = "gatling" # the root prefix of the metrics
  bufferSize = 8192 # internal data buffer size, in bytes
  writePeriod = 1 # write period, in seconds

My influxdb.conf

# Determines whether the graphite endpoint is enabled.
enabled = true
database = "mygatlinginstance"
# retention-policy = ""
bind-address = ":2003"
protocol = "tcp"
# consistency-level = "one"
templates = [
"gatling.*.users.*.* measurement.simulation.measurement.request.field",
"gatling.*.*.*.*.*.*.*.*.*.* measurement.simulation.group1.group2.group3.group4.group5.group6.request.status.field group=6",
"gatling.*.*.*.*.*.*.*.*.* measurement.simulation.group1.group2.group3.group4.group5.request.status.field group=5",
"gatling.*.*.*.*.*.*.*.* measurement.simulation.group1.group2.group3.group4.request.status.field group=4",
"gatling.*.*.*.*.*.*.* measurement.simulation.group1.group2.group3.request.status.field group=3",
"gatling.*.*.*.*.*.* measurement.simulation.group1.group2.request.status.field group=2",
"gatling.*.*.*.*.* measurement.simulation.group1.request.status.field group=1",
"gatling.*.*.*.* measurement.simulation.request.status.field group=0",

"v2.gatling.*.*.*.*.*.*.*.*.*.*.*.* group=6",
"v2.gatling.*.*.*.*.*.*.*.*.*.*.* group=5",
"v2.gatling.*.*.*.*.*.*.*.*.*.* group=4",
"v2.gatling.*.*.*.*.*.*.*.*.* group=3",
"v2.gatling.*.*.*.*.*.*.*.* group=2",
"v2.gatling.*.*.*.*.*.*.* group=1",
"v2.gatling.*.*.*.*.*.* group=0",

Did you try sending a measurement to influxdb without using gatling, maybe it is a connectivity issue. Are your ports exposed in the influxdb container? Maybe you are just exposing the default 8086 or 8087 and not 2003.

1 Like