Skip to content

Commit

Permalink
Fix prometheus output panic on reload
Browse files Browse the repository at this point in the history
closes #1530
  • Loading branch information
sparrc committed Sep 12, 2016
1 parent 811567a commit bcb93e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- [#1628](https://github.com/influxdata/telegraf/issues/1628): Fix mongodb input panic on version 2.2.
- [#1738](https://github.com/influxdata/telegraf/issues/1738): Fix unmarshal of influxdb metrics with null tags
- [#1733](https://github.com/influxdata/telegraf/issues/1733): Fix statsd scientific notation parsing
- [#1530](https://github.com/influxdata/telegraf/issues/1530): Fix prometheus_client reload panic

## v1.0 [2016-09-08]

Expand Down
2 changes: 1 addition & 1 deletion plugins/outputs/prometheus_client/prometheus_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var sampleConfig = `
`

func (p *PrometheusClient) Start() error {
prometheus.MustRegister(p)
prometheus.Register(p)
defer func() {
if r := recover(); r != nil {
// recovering from panic here because there is no way to stop a
Expand Down

0 comments on commit bcb93e1

Please sign in to comment.