-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Telegraf 1.19.0 isn't working with couchbase in 6.0.5 build 3340 #9416
Copy link
Copy link
Closed
Labels
area/couchbasebugunexpected problem or unintended behaviorunexpected problem or unintended behaviorregressionsomething that used to work, but is now brokensomething that used to work, but is now broken
Description
Relevant telegraf.conf:
### MANAGED BY dj-wasabi.telegraf ANSIBLE ROLE ###
[global_tags]
customer = "<text>"
product = "<text>"
environment = "<text>"
# Configuration for telegraf agent
[agent]
interval = "10s"
debug = false
hostname = "<text>"
round_interval = true
flush_interval = "10s"
flush_jitter = "0s"
collection_jitter = "0s"
metric_batch_size = 1000
metric_buffer_limit = 10000
quiet = false
logfile = ""
omit_hostname = false
###############################################################################
# OUTPUTS #
###############################################################################
[[outputs.prometheus_client]]
metric_version = 2
ip_range = ["<text>"]
collectors_exclude = ["gocollector", "process"]
###############################################################################
# INPUTS #
###############################################################################
[[inputs.cpu]]
percpu = true
totalcpu = true
[[inputs.disk]]
ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"]
[[inputs.diskio]]
[[inputs.mem]]
[[inputs.net]]
[[inputs.system]]
[[inputs.netstat]]
[[inputs.processes]]
[[inputs.kernel]]
[[inputs.internal]]
[[inputs.linux_sysctl_fs]]
###############################################################################
# PROCESSORS #
###############################################################################Relevant couchbase.conf:
[[inputs.couchbase]]
servers = ["http://<username>:<password>@localhost:8091"]System info:
Tested in Docker image and directly Ubuntu host
Docker
Ubuntu
Version: Ubuntu 18.04.5 LTS
Steps to reproduce:
- Just run telegraf 1.19.0 with couchbase plugin
Expected behavior:
Gathering metrics
Actual behavior:
[agent] Config: Interval:10s, Quiet:false, Hostname:"<hostname>", Flush Interval:10s
panic: runtime error: index out of range [59] with length 0
goroutine 43 [running]:
github.com/influxdata/telegraf/plugins/inputs/couchbase.(*Couchbase).gatherDetailedBucketStats(0xc00031d4c0, 0xc000b16401, 0x3a, 0xc000af3838, 0x7, 0xc000d0ef00, 0x17, 0x0)
/bitnami/blacksmith-sandox/telegraf-1.19.0/src/github.com/influxdata/telegraf/plugins/inputs/couchbase/couchbase.go:164 +0xca1e
github.com/influxdata/telegraf/plugins/inputs/couchbase.(*Couchbase).gatherServer(0xc00031d4c0, 0x5648b58, 0xc000148e00, 0xc000b16401, 0x3a, 0xc000adfd68, 0xc000a391e0, 0x0)
/bitnami/blacksmith-sandox/telegraf-1.19.0/src/github.com/influxdata/telegraf/plugins/inputs/couchbase/couchbase.go:111 +0xa2d
github.com/influxdata/telegraf/plugins/inputs/couchbase.(*Couchbase).Gather.func1(0xc000cf8060, 0x5648b58, 0xc000148e00, 0xc00031d4c0, 0xc000b16401, 0x3a)
/bitnami/blacksmith-sandox/telegraf-1.19.0/src/github.com/influxdata/telegraf/plugins/inputs/couchbase/couchbase.go:64 +0x91
created by github.com/influxdata/telegraf/plugins/inputs/couchbase.(*Couchbase).Gather
/bitnami/blacksmith-sandox/telegraf-1.19.0/src/github.com/influxdata/telegraf/plugins/inputs/couchbase/couchbase.go:62 +0x10d
Additional info:
Couchbase version: 6.0.5 build 3340
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/couchbasebugunexpected problem or unintended behaviorunexpected problem or unintended behaviorregressionsomething that used to work, but is now brokensomething that used to work, but is now broken