Skip to content

Commit

Permalink
Merge branch 'master' into issue_1763_win_pdh
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffAshton authored Nov 26, 2016
2 parents 7ecc3bf + f862c65 commit bfd3c54
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions plugins/outputs/amqp/amqp.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type AMQP struct {
Database string
// InfluxDB retention policy
RetentionPolicy string
// InfluxDB precision
// InfluxDB precision (DEPRECATED)
Precision string

// Path to CA file
Expand Down Expand Up @@ -61,7 +61,6 @@ const (
DefaultAuthMethod = "PLAIN"
DefaultRetentionPolicy = "default"
DefaultDatabase = "telegraf"
DefaultPrecision = "s"
)

var sampleConfig = `
Expand All @@ -79,8 +78,6 @@ var sampleConfig = `
# retention_policy = "default"
## InfluxDB database
# database = "telegraf"
## InfluxDB precision
# precision = "s"
## Optional SSL Config
# ssl_ca = "/etc/telegraf/ca.pem"
Expand All @@ -105,7 +102,6 @@ func (q *AMQP) Connect() error {
defer q.Unlock()

q.headers = amqp.Table{
"precision": q.Precision,
"database": q.Database,
"retention_policy": q.RetentionPolicy,
}
Expand Down Expand Up @@ -225,7 +221,6 @@ func init() {
return &AMQP{
AuthMethod: DefaultAuthMethod,
Database: DefaultDatabase,
Precision: DefaultPrecision,
RetentionPolicy: DefaultRetentionPolicy,
}
})
Expand Down

0 comments on commit bfd3c54

Please sign in to comment.