我想将gatling性能数据写入不同的端口或数据库中,因为我有多个微服务。 下面是我的配置文件-
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 = "offeringqualification" # The common prefix of all metrics sent to Graphite
bufferSize = 8192 # Internal data buffer size, in bytes
writePeriod = 1 # Write period, in seconds
} #I have wrapped this content inside gatling scope
下面是我的influxdb conf-
###[[graphite]]
enabled = true
database = "offeringqualification"
retention-policy = ""
bind-address = ":2003"
protocol = "tcp"
consistency-level = "one"
# Flush if this many points get buffered
batch-size = 50000
我尝试更改influx db中的端口并配置2个石墨侦听器,但是即使将gatling conf文件更新为其他端口,gatling也会尝试发送到2003端口。尝试在Influx中添加不同的模板时,仍然按照默认的加特林模板写入数据。我想根据我正在从事的项目将不同的数据写入不同的数据库。另外,不要希望多个influx数据库实例同时运行。