Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prometheus Plugin Panic #1339

Closed
lswith opened this issue Jun 7, 2016 · 0 comments · Fixed by #1362
Closed

Prometheus Plugin Panic #1339

lswith opened this issue Jun 7, 2016 · 0 comments · Fixed by #1362
Labels
bug unexpected problem or unintended behavior

Comments

@lswith
Copy link
Contributor

lswith commented Jun 7, 2016

System info:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
Telegraf - version 0.13.1

Steps to reproduce:

  1. reload telegraf config
2016/06/07 02:31:47 Reloading Telegraf config
2016/06/07 02:31:47 Hang on, flushing any cached metrics before shutdown
2016/06/07 02:31:47 Output [influxdb] buffer fullness: 0 / 1000 metrics. Total gathered metrics: 135674. Total dropped metrics: 0.
2016/06/07 02:31:47 Output [prometheus_client] buffer fullness: 0 / 1000 metrics. Total gathered metrics: 135674. Total dropped metrics: 0.
panic: http: multiple registrations for /metrics

goroutine 1 [running]:
panic(0xe84ec0, 0xc8207fc900)
        /usr/local/go/src/runtime/panic.go:481 +0x3e6
net/http.(*ServeMux).Handle(0xc820010ae0, 0x1240ea0, 0x8, 0x7f2b451911b0, 0xc820671770)
        /usr/local/go/src/net/http/server.go:1926 +0x297
net/http.Handle(0x1240ea0, 0x8, 0x7f2b451911b0, 0xc820671770)
        /usr/local/go/src/net/http/server.go:1961 +0x4b
github.com/influxdata/telegraf/plugins/outputs/prometheus_client.(*PrometheusClient).Start(0xc820690660, 0x0, 0x0)
        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/outputs/prometheus_client/prometheus_client.go:42 +0x7f
github.com/influxdata/telegraf/agent.(*Agent).Connect(0xc82015c548, 0x0, 0x0)
        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/agent/agent.go:53 +0x16a
main.main()
        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:237 +0x1c76
@sparrc sparrc added the bug unexpected problem or unintended behavior label Jun 7, 2016
sparrc added a commit that referenced this issue Jun 10, 2016
sparrc added a commit that referenced this issue Jun 10, 2016
sparrc added a commit that referenced this issue Jun 10, 2016
sparrc added a commit that referenced this issue Jun 13, 2016
sparrc added a commit that referenced this issue Jun 23, 2016
chebrolus pushed a commit to chebrolus/telegraf that referenced this issue Jun 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants