Live Monitoring with Gatling-InfluxDB-Grafana

819 views
Skip to first unread message

anthony...@gmail.com

unread,
Oct 12, 2017, 4:04:55 PM10/12/17
to Gatling User Group
Hi Everyone,

My question was already asked on this group but I didn't succeed to solve my issue.

I don't succeed to send my data from Gatling in real time to InfluxDB.

Gatling Version: 2.3.0 (the last one)
InfluxDB version: 1.3.5 (the last is 1.3.6)

My gatling.conf:
 
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
   
}
 
}

My influxdb.conf:

[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"
   
]

My gatlingdb database is created on InfluxDB, it stays empty.

When I try:
C:\InfluxDB-1.3.5-1>influx -host 127.0.0.1
I'm connected to InfluxDB

>USE gatlingdb
I'm connected to my database. Then:
>SHOW SERIES
and
>SELECT * FROM gatling
Don't return anything. It's empty. 

Note: I put "FROM gatling" because I put that in my gatling.conf: rootPathPrefix = "gatling"

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.

I succeeded in connecting InfluxDB to Grafana and I display data from other databases. I just missed the connection between Gatling and InfluxDB.

Thanks in advance for your help, I definitely need it!

Anthony



Message has been deleted

Rodrigo Antonio Campos Tapia

unread,
Jul 3, 2019, 2:44:33 PM7/3/19
to Gatling User Group
Hello, what is some solution to this problem?
Greetings.

El jueves, 12 de octubre de 2017, 17:04:55 (UTC-3), anthony ... @ gmail.com escribió:
Hola a todos,

Mi pregunta ya se hizo en este grupo, pero no logré resolver mi problema.

No logro enviar mis datos de Gatling en tiempo real a InfluxDB.

Versión Gatling: 2.3.0 (la última)
Versión de InfluxDB: 1.3.5 (la última es 1.3.6)

Mi gatling.conf:
 
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
   
}
 
}

Mi influxdb.conf:

[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"
   
]

Mi base de datos gatlingdb se crea en InfluxDB, permanece vacía.

Cuando intento
C:\InfluxDB-1.3.5-1>influx -host 127.0.0.1
Estoy conectado a InfluxDB

>USE gatlingdb
Estoy conectado a mi base de datos. Entonces:
>SHOW SERIES
y
>SELECT * FROM gatling
No devuelvas nada. Esta vacio. 

Nota: puse "FROM gatling" porque lo puse en mi gatling.conf:  rootPathPrefix  = "gatling" 

No descargué Graphite pero vi que InfluxDB aceptaba el protocolo de grafito. Supongo que puedo enviar datos desde Gatling a InfluxDB. Ciertamente me he perdido algo.

Logré conectar InfluxDB a Grafana y muestro datos de otras bases de datos. Acabo de perder la conexión entre Gatling e InfluxDB.

Gracias de antemano por su ayuda, definitivamente la necesito!

Antonio



Reply all
Reply to author
Forward
0 new messages