【问题标题】:Gatling does not send metrics to InfluxDB using graphite protocolGatling 不使用石墨协议将指标发送到 InfluxDB
【发布时间】:2018-06-24 10:16:03
【问题描述】:

我按照BlazeMeter article 使用 Grafana 和 InfluxDB 监控 Gatling 测试,但没有数据发送到 InfluxDB,也没有任何名为“graphite”的数据库发送。 InfluxDB 启动并监听端口:2003。这是来自 InfluxDB 的日志:

2018-06-24T09:48:17Z Listening on TCP: [::]:2003 service=graphite addr=:2003

我将gatling.conf 字段设置为这些:

  data {
    #writers = [console, file]      # The list of DataWriters to which Gatling write simulation data (currently supported : console, file, graphite, jdbc)
    console {
      #light = false                # When set to true, displays a light version without detailed request stats
    }
    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          # GraphiteDataWriter's internal data buffer size, in bytes
      writeInterval = 1          # GraphiteDataWriter's write interval, in seconds
    }
  }

gatling.confsrc/test/resources 文件夹中,我通过调试确保这个配置文件是由 Gatling 加载的。

我错过了什么?

【问题讨论】:

    标签: influxdb graphite gatling scala-gatling


    【解决方案1】:

    您的数据写入器配置无效。设置为:

    writers = [console, file, graphite]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-28
      • 2019-07-14
      • 1970-01-01
      相关资源
      最近更新 更多