title: How can I write in InfluxDB from Gatling?
body: <p>My question was already asked but I didn't succeed to solve my issue.</p>
  
  <p>I don't succeed to send my data from Gatling in real time to InfluxDB.</p>
  
  <p>I'm on Windows 10.
  Gatling Version: 2.3.0 (the last one).
  InfluxDB version: 1.3.5 (the last is 1.3.6).</p>
  
  <p>My gatling.conf:</p>
  
  <pre><code>data {
      writers = [console, file, graphite]      # The list of DataWriters to which Gatling write simulation data (currently supported : console, file, graphite, jdbc)
      console {
        #light = false                # When set to true, displays a light version without detailed request stats
      }
      file {
        #bufferSize = 8192            # FileDataWriter's internal data buffer size, in bytes
      }
      leak {
        #noActivityTimeout = 30  # Period, in seconds, for which Gatling may have no activity before considering a leak may be happening
      }
      graphite {
        #light = false              # only send the all* stats
        host = "127.0.0.1"         # 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
      }
    }
  </code></pre>
  
  <p>My influxdb.conf:</p>
  
  <pre><code>[http]
    # Determines whether HTTP endpoint is enabled.
     enabled = true
  
  
    # The bind address used by the HTTP service.
     bind-address = "127.0.0.1:8086"
  
  
  ###
  ### [[graphite]]
  ###
  ### Controls one or many listeners for Graphite data.
  ###
  
  
  [[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"
     ]
  </code></pre>
  
  <p>My gatlingdb database is created on InfluxDB, it stays empty.</p>
  
  <p>When I try:</p>
  
  <pre><code>C:\InfluxDB-1.3.5-1&gt;influx -host 127.0.0.1
  </code></pre>
  
  <p>I'm connected to InfluxDB</p>
  
  <pre><code>&gt;USE gatlingdb
  </code></pre>
  
  <p>I'm connected to my database. Then:</p>
  
  <pre><code>&gt;SHOW SERIES
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&gt;SELECT * FROM gatling
  </code></pre>
  
  <p>Don't return anything. It's empty. </p>
  
  <p>Note: I put "FROM gatling" because I put that in my gatling.conf: rootPathPrefix = "gatling"</p>
  
  <p>I didn't download Graphite but I saw that InfluxDB accept the graphite protocol. I assume I can send data from Gatling to InfluxDB. I certainly missed something.</p>
  
  <p>I succeeded in connecting InfluxDB to Grafana and I display data from other databases. I just missed the connection between Gatling and InfluxDB.</p>
  
  <p>Thanks in advance for your help, I definitely need it!</p>
  
  <p>Anthony</p>