Grafana and Influx db connection

Hi guys,

I want to create live metrics for my performance tests, however, thorugh docker my containers are up, however when I run simulation, I have still problem with data is not writing through influxdb, influxdb is empty when I check graphite

This is influxdb conf

InfluxDB Configuration File

[meta]
dir = “/var/lib/influxdb/meta”
retention-autocreate = true
logging-enabled = true

[data]
dir = “/var/lib/influxdb/data”
index-version = “inmem”
wal-dir = “/var/lib/influxdb/wal”
wal-fsync-delay = “0s”
query-log-enabled = true
cache-max-memory-size = 1073741824
cache-snapshot-memory-size = 26214400
cache-snapshot-write-cold-duration = “1h”
compact-full-write-cold-duration = “24h”
max-series-per-database = 1000000
max-values-per-tag = 100000

[coordinator]
write-timeout = “10s”
max-concurrent-queries = 0
query-timeout = “0s”
log-messages-after = “0s”

[retention]
enabled = true
check-interval = “30m”

[shard-precreation]
enabled = true
check-interval = “10m”
advance-period = “30m”

[monitor]
store-enabled = true
store-database = “_internal”
store-interval = “10s”

[http]
enabled = true
bind-address = “:8086”
auth-enabled = false
log-enabled = true
write-tracing = false
pprof-enabled = true
ping-auth-enabled = false
flux-enabled = false

[logging]
format = “auto”
level = “info”

[subscriber]
enabled = true
http-timeout = “30s”
insecure-skip-verify = false
ca-certs = “”
write-concurrency = 40
write-buffer-size = 1000

------------------------------------

Graphite Input (REQUIRED FOR GATLING)

------------------------------------

[[graphite]]
enabled = true
bind-address = “:2003”
database = “graphite”
retention-policy = “”
protocol = “tcp”
batch-size = 5000
batch-pending = 10
batch-timeout = “1s”
consistency-level = “one”
separator = “.”

[logging]
level = “debug”

Docker compose
version: ‘3.2’

services:
influxdb:
build: influxdb
env_file: configuration.env
ports:
- “8086:8086”
- “2003:2003”
volumes:
- influxdb_data:/var/lib/influxdb
grafana:
build: grafana
env_file: configuration.env
links:
- influxdb
ports:
- ‘3000:3000’
volumes:
- grafana_data:/var/lib/grafana

volumes:
grafana_data: {}
influxdb_data: {}

And gatling.conf
data {
writers = [console, file, graphite] # The list of DataWriters to which Gatling write simulation data (currently supported : console, file, graphite)
reader = file
console {
#light = false # When set to true, displays a light version without detailed request stats
#writePeriod = 5 # Write interval, in seconds
}
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 = “localhost” # 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 # Internal data buffer size, in bytes
writeInterval = 1 # Write period, in seconds
}

What should be done to be able to see results in influxdb, since I have writers set in data?

Hi,

Already answered here: Gatling 3.13 + Influxdb 2.7 + Grafana

1 Like

FYI, we’ve released an official InfluxDB integration for Gatling Enterprise: Integrate Gatling with InfluxDB

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.