Hi Pierre/Stephane,
Here are the steps I took:
- Modifed gatling.conf like so:
data {
writers = “console, file, graphite” # The lists of DataWriters to which Gatling write simulation data (currently supported : “console”, “file”, “graphite”, “jdbc”)
reader = file # The DataReader used by the charting engine for reading simulation results
graphite {
#light = false # only send the all* stats
host = “gatling.cliqueintelligence.com” # The host where the Carbon server is located
port = 2003 # The port to which the Carbon server listens to
#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
}
- Modifed my config.toml for InfluxDB as so:
[input_plugins]
Configure the graphite api
[input_plugins.graphite]
enabled = true
address = “0.0.0.0” # If not set, is actually set to bind-address.
port = 2003
database = “gatling” # store graphite data in this database
udp_enabled = true # enable udp interface on the same port as the tcp interface
- Modifed collectd.conf like so:
LoadPlugin write_graphite
Host "localhost"
Port "2003"
Protocol "tcp"
LogSendErrors true
Prefix "collectd"
Postfix "collectd"
StoreRates true
AlwaysAppendDS false
EscapeCharacter "_"
- Modified config.js in Grafana like so:
// InfluxDB example setup (the InfluxDB databases specified need to exist)
datasources: {
influxdb: {
type: ‘influxdb’,
url: “http://localhost:8086/db/gatling”,
username: ‘root’,
password: ‘root’,
},
grafana: {
type: ‘influxdb’,
url: “http://localhost:8086/db/grafana”,
username: ‘root’,
password: ‘root’,
grafanaDB: true
},
},
I am sure there is something I am missing. I noticed there is a collectd section in the InfluxDB config file. So I also have to configure that? What should be running on port 2003?
I am not sure if I am supposed to do this or not but I did create a gatling and grafana database in InfluxDB through the admin console. I can load Grafana and I see an import option for influxdb so I believe I have that setup properly.
Any info will be greatly appreciated.
Thanks,
Steve