{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/3636","labels_url":"https://api.github.com/repos/influxdb/influxdb/issues/3636/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/3636/comments","events_url":"https://api.github.com/repos/influxdb/influxdb/issues/3636/events","html_url":"https://github.com/influxdb/influxdb/issues/3636","id":100609909,"number":3636,"title":"Support for Graphite limited to 1 input","user":{"login":"otoolep","id":536312,"avatar_url":"https://avatars.githubusercontent.com/u/536312?v=3","gravatar_id":"","url":"https://api.github.com/users/otoolep","html_url":"https://github.com/otoolep","followers_url":"https://api.github.com/users/otoolep/followers","following_url":"https://api.github.com/users/otoolep/following{/other_user}","gists_url":"https://api.github.com/users/otoolep/gists{/gist_id}","starred_url":"https://api.github.com/users/otoolep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otoolep/subscriptions","organizations_url":"https://api.github.com/users/otoolep/orgs","repos_url":"https://api.github.com/users/otoolep/repos","events_url":"https://api.github.com/users/otoolep/events{/privacy}","received_events_url":"https://api.github.com/users/otoolep/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/influxdb/influxdb/labels/category/plugins","name":"category/plugins","color":"915345"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-12T18:49:39Z","updated_at":"2015-08-24T09:37:02Z","closed_at":null,"body":"While the Graphite configuration indicates that multiple Graphite inputs are supported, this isn't actually the case. Attempting to enable more than 1 results in a panic:\r\n\r\n```\r\nusing configuration at: /home/philip/config.sample.toml\r\npanic: reflect: slice index out of range\r\n\r\ngoroutine 1 [running]:\r\nreflect.Value.Index(0x8e1280, 0xc20806c0d8, 0xd7, 0x1, 0x0, 0x0, 0x0)\r\n        /usr/local/go/src/reflect/value.go:818 +0x149\r\ngithub.com/BurntSushi/toml.(*MetaData).unifySliceArray(0xc208050910, 0x8e2060, 0xc20801ffa0, 0x57, 0x8e1280, 0xc20806c0d8, 0xd7, 0x0, 0x0)\r\n        /home/philip/repos/influxdb/src/github.com/BurntSushi/toml/decode.go:321 +0x137\r\ngithub.com/BurntSushi/toml.(*MetaData).unifySlice(0xc208050910, 0x8e2060, 0xc20801ffa0, 0x8e1280, 0xc20806c0d8, 0xd7, 0x0, 0x0)\r\n        /home/philip/repos/influxdb/src/github.com/BurntSushi/toml/decode.go:314 +0x25f\r\ngithub.com/BurntSushi/toml.(*MetaData).unify(0xc208050910, 0x8e2060, 0xc20801ffa0, 0x8e1280, 0xc20806c0d8, 0xd7, 0x0, 0x0)\r\n        /home/philip/repos/influxdb/src/github.com/BurntSushi/toml/decode.go:206 +0xd52\r\ngithub.com/BurntSushi/toml.(*MetaData).unifyStruct(0xc208050910, 0x8f5b00, 0xc20800af00, 0xaa69e0, 0xc20806c000, 0xd9, 0x0, 0x0)\r\n        /home/philip/repos/influxdb/src/github.com/BurntSushi/toml/decode.go:252 +0x7c9\r\ngithub.com/BurntSushi/toml.(*MetaData).unify(0xc208050910, 0x8f5b00, 0xc20800af00, 0xaa69e0, 0xc20806c000, 0xd9, 0x0, 0x0)\r\n        /home/philip/repos/influxdb/src/github.com/BurntSushi/toml/decode.go:200 +0xdea\r\ngithub.com/BurntSushi/toml.Decode(0xc208076800, 0x1734, 0x8bdac0, 0xc20804e020, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\r\n        /home/philip/repos/influxdb/src/github.com/BurntSushi/toml/decode.go:114 +0x225\r\ngithub.com/BurntSushi/toml.DecodeFile(0x7fffe4e9adc1, 0x1f, 0x8bdac0, 0xc20804e020, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\r\n        /home/philip/repos/influxdb/src/github.com/BurntSushi/toml/decode.go:124 +0x132\r\ngithub.com/influxdb/influxdb/cmd/influxd/run.(*Command).ParseConfig(0xc2080a0300, 0x7fffe4e9adc1, 0x1f, 0x0, 0x0, 0x0)\r\n        /home/philip/repos/influxdb/src/github.com/influxdb/influxdb/cmd/influxd/run/command.go:196 +0x328\r\ngithub.com/influxdb/influxdb/cmd/influxd/run.(*Command).Run(0xc2080a0300, 0xc20800a010, 0x2, 0x2, 0x0, 0x0)\r\n        /home/philip/repos/influxdb/src/github.com/influxdb/influxdb/cmd/influxd/run/command.go:77 +0x32f\r\nmain.(*Main).Run(0xc208037b40, 0xc20800a010, 0x2, 0x2, 0x0, 0x0)\r\n        /home/philip/repos/influxdb/src/github.com/influxdb/influxdb/cmd/influxd/main.go:81 +0x3f8\r\nmain.main()\r\n        /home/philip/repos/influxdb/src/github.com/influxdb/influxdb/cmd/influxd/main.go:42 +0xdc\r\n```\r\n\r\nThis is because of this line:\r\n\r\n`c.Graphites = append(c.Graphites, graphite.NewConfig())`\r\n\r\nbut removing this line means the Graphite input is not configured with the defaults. To support multiple Graphite inputs, defaults are going to have to be set by the Graphite input code itself and not by `NewConfig'.\r\n"},"comment":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/comments/134111927","html_url":"https://github.com/influxdb/influxdb/issues/3636#issuecomment-134111927","issue_url":"https://api.github.com/repos/influxdb/influxdb/issues/3636","id":134111927,"user":{"login":"noroute","id":212655,"avatar_url":"https://avatars.githubusercontent.com/u/212655?v=3","gravatar_id":"","url":"https://api.github.com/users/noroute","html_url":"https://github.com/noroute","followers_url":"https://api.github.com/users/noroute/followers","following_url":"https://api.github.com/users/noroute/following{/other_user}","gists_url":"https://api.github.com/users/noroute/gists{/gist_id}","starred_url":"https://api.github.com/users/noroute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noroute/subscriptions","organizations_url":"https://api.github.com/users/noroute/orgs","repos_url":"https://api.github.com/users/noroute/repos","events_url":"https://api.github.com/users/noroute/events{/privacy}","received_events_url":"https://api.github.com/users/noroute/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T09:37:02Z","updated_at":"2015-08-24T09:37:02Z","body":"Does this have a target release?\r\n\r\nAnd: would more than one graphite instance be able to share a database (e.g. tcp+udp)?"}}