【问题标题】:Gatling to InfluxDB connection in windowsGatling 到 Windows 中的 InfluxDB 连接
【发布时间】:2020-03-06 08:56:21
【问题描述】:

我在 Windows 10 中使用 gatling 和 influxdb。我正在尝试将一些结果从 gatling 发送到 influxdb。但是结果并没有被推送到 influxdb。谁能帮帮我。

我的石墨配置文件

data {
#writers = [console, file, graphite]      
console {
  #light = false            
  #writePeriod = 5    
}

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
  writePeriod = 1            # Write period, in seconds
}
}

我的 influxdb 配置文件是

[[graphite]]

enabled = true
database = "gatlingdb"
retention-policy = ""
bind-address = ":2003"
protocol = "tcp"
consistency-level = "one"


batch-size = 5000

batch-pending = 10

batch-timeout = "1s"

udp-read-buffer = 0

separator = "."


templates = [
"gatling.*.*.*.count measurement.simulation.request.status.field",
"gatling.*.*.*.min measurement.simulation.request.status.field",
"gatling.*.*.*.max measurement.simulation.request.status.field",
"gatling.*.*.*.percentiles50 measurement.simulation.request.status.field",
"gatling.*.*.*.percentiles75 measurement.simulation.request.status.field",
"gatling.*.*.*.percentiles95 measurement.simulation.request.status.field",
"gatling.*.*.*.percentiles99 measurement.simulation.request.status.field"
 ] 

不知道为什么它不起作用。

【问题讨论】:

    标签: influxdb gatling


    【解决方案1】:

    取消注释#writers = [console, file, graphite]

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-07-26
      • 1970-01-01
      • 2017-10-12
      • 1970-01-01
      • 2014-12-10
      • 1970-01-01
      相关资源
      最近更新 更多