{"action":"opened","issue":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/1849","repository_url":"https://api.github.com/repos/influxdata/telegraf","labels_url":"https://api.github.com/repos/influxdata/telegraf/issues/1849/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/telegraf/issues/1849/comments","events_url":"https://api.github.com/repos/influxdata/telegraf/issues/1849/events","html_url":"https://github.com/influxdata/telegraf/issues/1849","id":180925320,"number":1849,"title":"Telegraf panics when StatsD plugin enabled","user":{"login":"mclate","id":2183014,"avatar_url":"https://avatars.githubusercontent.com/u/2183014?v=3","gravatar_id":"","url":"https://api.github.com/users/mclate","html_url":"https://github.com/mclate","followers_url":"https://api.github.com/users/mclate/followers","following_url":"https://api.github.com/users/mclate/following{/other_user}","gists_url":"https://api.github.com/users/mclate/gists{/gist_id}","starred_url":"https://api.github.com/users/mclate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mclate/subscriptions","organizations_url":"https://api.github.com/users/mclate/orgs","repos_url":"https://api.github.com/users/mclate/repos","events_url":"https://api.github.com/users/mclate/events{/privacy}","received_events_url":"https://api.github.com/users/mclate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-04T15:25:34Z","updated_at":"2016-10-04T15:25:34Z","closed_at":null,"body":"When enabling StatsD pugin in telegraf, at some point it panics with division by zero error. This happens for v0.13 as well as for v1.0\r\n\r\n```\r\npanic: runtime error: integer divide by zero\r\n[signal 0x8 code=0x1 addr=0x621709 pc=0x621709]\r\n\r\ngoroutine 25 [running]:\r\npanic(0x12cefe0, 0xc82000e0a0)\r\n        /usr/local/go/src/runtime/panic.go:481 +0x3e6\r\ngithub.com/influxdata/telegraf/plugins/inputs/statsd.(*Statsd).udpListen(0xc8200d4680, 0x0, 0x0)\r\n        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/statsd/statsd.go:298 +0x7d9\r\ncreated by github.com/influxdata/telegraf/plugins/inputs/statsd.(*Statsd).Start\r\n        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/statsd/statsd.go:261 +0x2a7\r\n```\r\n\r\n### Relevant telegraf.conf:\r\n\r\n```\r\n[[inputs.statsd]]\r\n  service_address = \":8125\"\r\n  metric_separator = \"_\"\r\n```\r\n\r\n### System info:\r\n\r\n```\r\nOS: Ubuntu 14.04\r\n\r\nPackage: telegraf\r\nVersion: 1.0.0-1\r\nLicense: MIT\r\nVendor: InfluxData\r\nMaintainer: support@influxdb.com\r\nInstalled-Size: 40.0 MB\r\nHomepage: https://github.com/influxdata/telegraf\r\nPriority: extra\r\nSection: default\r\nDownload-Size: 10.5 MB\r\nAPT-Manual-Installed: yes\r\nAPT-Sources: https://repos.influxdata.com/ubuntu/ trusty/stable amd64 Packages\r\nDescription: Plugin-driven server agent for reporting metrics into InfluxDB.\r\n```\r\n\r\n### Additional info:\r\n\r\nThere are consul (consul.io) and nomad (nomadproject.io) reporting to statsd on localhost"}}
{"actor":{"display_login":"mclate"}}