我无法将Gatling的数据实时发送到influxDB。
我在Windows10上。加特林版本:2.3.0(最后一个)。InflxDB版本:1.3.5(最后一个是1.3.6)。
我的Gatling.conf:
data {
writers = [console, file, graphite] # 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 = "127.0.0.1" # 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
}
}
[http]
# Determines whether HTTP endpoint is enabled.
enabled = true
# The bind address used by the HTTP service.
bind-address = "127.0.0.1:8086"
###
### [[graphite]]
###
### Controls one or many listeners for Graphite data.
###
[[graphite]]
# Determines whether the graphite endpoint is enabled.
enabled = true
database = "gatlingdb"
# retention-policy = ""
bind-address = ":2003"
protocol = "tcp"
# consistency-level = "one"
templates = [
"gatling.*.*.*.*.measurement.simulation.request.status.field"
]
C:\InfluxDB-1.3.5-1>influx -host 127.0.0.1
我连接到inflxdb
>USE gatlingdb
我连接到我的数据库了。然后:
>SHOW SERIES
和
>SELECT * FROM gatling
安东尼
我几乎完成了这篇文章,它展示了使用Gatling、Grafana和InfluxDB(顺便说一句,没有单独安装石墨)创建整个监控基础设施所需的所有步骤,这对我来说非常有效。我想我会在几天后在blazemeter.com的博客上发布它!所以请继续关注!http://blazemeter.com/blog
在那里,你甚至会找到现成的解决方案来旋转Docker内的所有东西。
但在此之前(如果您有紧急需要),可以共享我的inflxdb配置部分:
[[graphite]]
enabled = true
bind-address = ":2003"
database = "graphite"
retention-policy = ""
protocol = "tcp"
batch-size = 5000
batch-pending = 10
batch-timeout = "1s"
consistency-level = "one"
separator = "."
udp-read-buffer = 0
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
}
influxdb_1 | [I] 2018-01-26T13:40:37Z Listening on TCP: [::]:2003 service=graphite addr=:2003
我已经用网站上提到的所有配置将gatling连接到influxDB。我可以在influxDB中看到pass fail、ResponseTime、StDev、requestname。现在我需要为KO事务及其错误消息添加响应代码。有人能让我知道吗,如果可以添加和如何添加 感谢你的帮助
我跟随BlazeMeter的文章,使用Grafana和InfluxDB监视Gatling测试,但没有数据发送到InfluxDB,也没有创建任何名称为“Graphite”的数据库。inflxdb已启动并侦听端口:2003。这是来自inflxdb的日志: 我将字段设置为: 我错过了什么?
我试图将URL从CSV文件输入到Gatling模拟中,我得到了以下错误: 11:48:01.967[错误]i.g.h.a.HttpRequestAction-“httpRequest-1”未能执行:未定义名为“Url”的属性 我的数据文件如下所示: 而我的模拟如下: 如果我调试模拟(我正在使用IntelliJ FYI),我可以看到有两条记录,每条记录都是一个,如果我深入研究,我可以看到和,因此进料
问题内容: 所以,这是表格- 在这里,表格只会映射其他两个表格。 我想要显示数据的方式是- 在这里,“厨房”,“洗手间”,“屋顶”,“花园”列的值是发生的事件总数。“百分比”列将显示总计数的百分比。 如何在Oracle SQL中做到这一点? 问题答案: 您需要使用标准的 PIVOT 查询。 根据您的 Oracle数据库版本 ,您可以通过以下两种方式进行操作: 将 PIVOT 用于 11g 及更高
问题内容: 我想对此进行网址编码: 我需要为此下载一个模块吗?我已经有了请求模块。 问题答案: 您可以使用JavaScript的: