Add support for ${} env vars in configuration file (#5648)

This commit is contained in:
Daniel Nelson
2019-03-29 16:02:10 -07:00
committed by GitHub
parent aac013f8ab
commit 6feb6c1853
4 changed files with 30 additions and 18 deletions

View File

@@ -11,7 +11,6 @@ import (
"github.com/influxdata/telegraf/plugins/inputs/memcached"
"github.com/influxdata/telegraf/plugins/inputs/procstat"
"github.com/influxdata/telegraf/plugins/parsers"
"github.com/stretchr/testify/assert"
)
@@ -28,7 +27,7 @@ func TestConfig_LoadSingleInputWithEnvVars(t *testing.T) {
filter := models.Filter{
NameDrop: []string{"metricname2"},
NamePass: []string{"metricname1"},
NamePass: []string{"metricname1", "ip_192.168.1.1_name"},
FieldDrop: []string{"other", "stuff"},
FieldPass: []string{"some", "strings"},
TagDrop: []models.TagFilter{