Skip to content

Commit

Permalink
fix bug to return prometheus sink
Browse files Browse the repository at this point in the history
  • Loading branch information
chelseakomlo committed Sep 13, 2017
1 parent e08d5fb commit ae64dda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion command/agent/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,9 @@ func (c *Command) setupTelemetry(config *Config) (*metrics.InmemSink, error) {
if telConfig.PrometheusMetrics {
promSink, err := prometheus.NewPrometheusSink()
if err != nil {
fanout = append(fanout, promSink)
return inm, err
}
fanout = append(fanout, promSink)
}

// Configure the datadog sink
Expand Down

0 comments on commit ae64dda

Please sign in to comment.