Skip to content

Commit

Permalink
Add riemann output plugin deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc committed Oct 11, 2016
1 parent 3e3b094 commit 1ff721a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/outputs/riemann/riemann.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package riemann

import (
"fmt"
"log"
"os"
"sort"
"strings"
Expand All @@ -11,6 +12,8 @@ import (
"github.com/influxdata/telegraf/plugins/outputs"
)

const deprecationMsg = "I! WARNING: this Riemann output plugin will be deprecated in a future release, see https://github.com/influxdata/telegraf/issues/1878 for more details & discussion."

type Riemann struct {
URL string
Transport string
Expand All @@ -29,6 +32,7 @@ var sampleConfig = `
`

func (r *Riemann) Connect() error {
log.Printf(deprecationMsg)
c, err := raidman.Dial(r.Transport, r.URL)

if err != nil {
Expand Down Expand Up @@ -58,6 +62,7 @@ func (r *Riemann) Description() string {
}

func (r *Riemann) Write(metrics []telegraf.Metric) error {
log.Printf(deprecationMsg)
if len(metrics) == 0 {
return nil
}
Expand Down

0 comments on commit 1ff721a

Please sign in to comment.