Add addTag debugging in ifname plugin (#8018)

This commit is contained in:
Thomas Casteleyn 2020-08-26 23:25:57 +02:00 committed by GitHub
parent 60d402d827
commit 54f9e33208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -139,13 +139,13 @@ func (d *IfName) Init() error {
func (d *IfName) addTag(metric telegraf.Metric) error {
agent, ok := metric.GetTag(d.AgentTag)
if !ok {
//agent tag missing
d.Log.Warn("Agent tag missing.")
return nil
}
num_s, ok := metric.GetTag(d.SourceTag)
if !ok {
//source tag missing
d.Log.Warn("Source tag missing.")
return nil
}