我用telegraf在redis和xdb之间建立了一个连接。我用telegraf.conf创建了一个数据库,它也是在inflodb中创建的。当我写“显示尺寸”
name
----
cpu
disk
diskio
kernel
mem
processes
redis
redis_cmdstat
redis_keyspace
swap
system
当我写的时候,在任何其他的测量中选择*。我无法获得我在redis中创建的数据。telegraf.conf属性如下。
[[outputs.influxdb]]
## The full HTTP or UDP URL for your InfluxDB instance.
## Multiple URLs can be specified for a single cluster, only ONE of the
## urls will be written to each interval.
# urls = ["unix:///var/run/influxdb.sock"]
# urls = ["udp://127.0.0.1:8089"]
urls = ["http://localhost:8086"]
database = "db1"
timeout = "5s"
username = "username"
password = "password"
[[inputs.redis]]
servers = ["tcp://127.0.0.1:6379"]
我用了这些参考资料“https://medium.com/@tygrash/monitoring-redis-using-tig-stack-21e79a8dfe6“
暂无答案!
目前还没有任何答案,快来回答吧!