Grafana 使用influxconfig将空手道gatling数据写入不同的数据库,监听不同的端口

Grafana 使用influxconfig将空手道gatling数据写入不同的数据库,监听不同的端口,grafana,influxdb,karate,Grafana,Influxdb,Karate,我想将gatling性能数据写入不同的端口或数据库,因为我有多个微服务。 下面是我的galting配置文件- graphite { light = false # only send the all* stats host = "localhost" # The host where the Carbon server is located port = 2003 # The port to which th

我想将gatling性能数据写入不同的端口或数据库,因为我有多个微服务。 下面是我的galting配置文件-

  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
下面是我的XDB配置-

###[[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

我曾尝试更改influxdb中的端口并配置2个graphite侦听器,但gatling始终尝试发送到2003端口,即使我将gatling conf文件更新到不同的端口。尝试在inflow中添加不同的模板,但gatling在写入数据时仍遵循默认gatling模板。我想根据我正在从事的项目将不同的数据写入不同的数据库。另外,不要同时运行多个influx数据库实例。

这不是我的专业领域,但可能您的conf文件不在类路径中。如果你使用空手道的惯例,它可能需要在
src/test/java
Yes中,使用空手道惯例,它在src/test中。看起来它现在起作用了。我重新启动了XDB,并且使用相同的配置它工作。虽然,我已经在更改配置后重新启动了一次。这不是我的专业领域,但可能您的conf文件不在类路径中。如果你使用空手道的惯例,它可能需要在
src/test/java
Yes中,使用空手道惯例,它在src/test中。看起来它现在起作用了。我重新启动了XDB,并且使用相同的配置它工作。不过,在更改配置后,我已经重新启动了一次。