Skip to content
Snippets Groups Projects
Commit f862c658 authored by Cameron Sparr's avatar Cameron Sparr
Browse files

amqp precision is not used anymore

parent 5c32521a
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ type AMQP struct { ...@@ -29,7 +29,7 @@ type AMQP struct {
Database string Database string
// InfluxDB retention policy // InfluxDB retention policy
RetentionPolicy string RetentionPolicy string
// InfluxDB precision // InfluxDB precision (DEPRECATED)
Precision string Precision string
// Path to CA file // Path to CA file
...@@ -61,7 +61,6 @@ const ( ...@@ -61,7 +61,6 @@ const (
DefaultAuthMethod = "PLAIN" DefaultAuthMethod = "PLAIN"
DefaultRetentionPolicy = "default" DefaultRetentionPolicy = "default"
DefaultDatabase = "telegraf" DefaultDatabase = "telegraf"
DefaultPrecision = "s"
) )
var sampleConfig = ` var sampleConfig = `
...@@ -79,8 +78,6 @@ var sampleConfig = ` ...@@ -79,8 +78,6 @@ var sampleConfig = `
# retention_policy = "default" # retention_policy = "default"
## InfluxDB database ## InfluxDB database
# database = "telegraf" # database = "telegraf"
## InfluxDB precision
# precision = "s"
## Optional SSL Config ## Optional SSL Config
# ssl_ca = "/etc/telegraf/ca.pem" # ssl_ca = "/etc/telegraf/ca.pem"
...@@ -105,7 +102,6 @@ func (q *AMQP) Connect() error { ...@@ -105,7 +102,6 @@ func (q *AMQP) Connect() error {
defer q.Unlock() defer q.Unlock()
q.headers = amqp.Table{ q.headers = amqp.Table{
"precision": q.Precision,
"database": q.Database, "database": q.Database,
"retention_policy": q.RetentionPolicy, "retention_policy": q.RetentionPolicy,
} }
...@@ -225,7 +221,6 @@ func init() { ...@@ -225,7 +221,6 @@ func init() {
return &AMQP{ return &AMQP{
AuthMethod: DefaultAuthMethod, AuthMethod: DefaultAuthMethod,
Database: DefaultDatabase, Database: DefaultDatabase,
Precision: DefaultPrecision,
RetentionPolicy: DefaultRetentionPolicy, RetentionPolicy: DefaultRetentionPolicy,
} }
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment