amqp precision is not used anymore
This commit is contained in:
parent
5c32521a07
commit
f862c6585d
|
@ -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 (
|
||||||
DefaultAuthMethod = "PLAIN"
|
DefaultAuthMethod = "PLAIN"
|
||||||
DefaultRetentionPolicy = "default"
|
DefaultRetentionPolicy = "default"
|
||||||
DefaultDatabase = "telegraf"
|
DefaultDatabase = "telegraf"
|
||||||
DefaultPrecision = "s"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var sampleConfig = `
|
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 {
|
||||||
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() {
|
||||||
return &AMQP{
|
return &AMQP{
|
||||||
AuthMethod: DefaultAuthMethod,
|
AuthMethod: DefaultAuthMethod,
|
||||||
Database: DefaultDatabase,
|
Database: DefaultDatabase,
|
||||||
Precision: DefaultPrecision,
|
|
||||||
RetentionPolicy: DefaultRetentionPolicy,
|
RetentionPolicy: DefaultRetentionPolicy,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue