Write karate gatling data to different databases listening to different ports using influx config

白昼怎懂夜的黑 提交于 2021-01-28 11:38:12

问题


I want to write gatling performance data to different ports or to the databases because I have multiple microservices. Below is my galting config file-

  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

Below is my 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

I have tried changing the ports in influx db and configuring 2 graphite listeners, but gatling always tries to send to 2003 port even if I update the gatling conf file to different port. Tried adding different templates in influx still gatling follows the default gatling template in writing data. I want to write different data to different databases based on which project i am working on. Also, dont want multiple influx database instances running at the same time.

来源:https://stackoverflow.com/questions/60107645/write-karate-gatling-data-to-different-databases-listening-to-different-ports-us

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!