【发布时间】:2019-08-19 08:27:16
【问题描述】:
我已经创建了一个 t2.micro Ubuntu 18.04 EC2 实例,并且在这个 EC2 实例中我手动安装了 Grafana 和 InfluxDB。 Grafana 和 InfluxDB 都已成功安装,没有错误,但现在我期望的是当我在我的运行 Gatling 测试时 windows local ,结果应该实时推送到 InfluxDB 并最终推送到 Grafana
这是我对 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
#writePeriod = 5 # Write interval, in seconds
}
graphite {
light = false # only send the all* stats
host = "http://ec2-54-67-97-86.us-west-1.compute.amazonaws.com" # 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 测试时,我在 influx 实例中看不到任何数据
ubuntu@ip-172-31-9-16:~$ influx -host ec2-54-67-97-86.us-west-1.compute.amazonaws.com Connected to http://ec2-54-67-97-86.us-west-1.compute.amazonaws.com:8086 version 1.7.7
InfluxDB shell version: 1.7.7
> show databases
name: databases
name
----
_internal
gatling
graphite
> use graphite
Using database graphite
> show series
key
---
X-Grafana-Org-Id:
有人可以帮忙调试一下吗,为什么流入数据库没有收到数据
【问题讨论】: