Use alias name in output metric buffer stats

This commit is contained in:
Daniel Nelson
2019-08-21 18:02:51 -07:00
parent 3cdc6c32dd
commit 94f68c06d7
8 changed files with 73 additions and 80 deletions

View File

@@ -100,7 +100,7 @@ type HTTPConfig struct {
InfluxUintSupport bool `toml:"influx_uint_support"`
Serializer *influx.Serializer
log telegraf.Logger
Log telegraf.Logger
}
type httpClient struct {
@@ -176,7 +176,7 @@ func NewHTTPClient(config HTTPConfig) (*httpClient, error) {
},
createdDatabases: make(map[string]bool),
config: config,
log: config.log,
log: config.Log,
}
return client, nil
}
@@ -186,10 +186,6 @@ func (c *httpClient) URL() string {
return c.config.URL.String()
}
func (c *httpClient) SetLogger(log telegraf.Logger) {
c.log = log
}
// Database returns the default database that this client connects too.
func (c *httpClient) Database() string {
return c.config.Database