diff --git a/config/config.go b/config/config.go index be1a1ab780208..af65b52444cce 100644 --- a/config/config.go +++ b/config/config.go @@ -613,10 +613,8 @@ func printFilteredInputs(inputFilters []string, commented bool) { // Print Inputs for _, pname := range pnames { // Skip inputs that are registered twice for backward compatibility - if pname == "cisco_telemetry_gnmi" { - continue - } - if pname == "KNXListener" { + switch pname { + case "cisco_telemetry_gnmi", "io", "KNXListener": continue } creator := inputs.Inputs[pname] @@ -1243,14 +1241,6 @@ func (c *Config) addInput(name string, table *ast.Table) error { return nil } - // Legacy support renaming io input to diskio - if name == "io" { - if err := c.printUserDeprecation("inputs", name, nil); err != nil { - return err - } - name = "diskio" - } - // For inputs with parsers we need to compute the set of // options that is not covered by both, the parser and the input. // We achieve this by keeping a local book of missing entries diff --git a/plugins/inputs/diskio/diskio.go b/plugins/inputs/diskio/diskio.go index 9458b2af7a68f..c0b6840826f33 100644 --- a/plugins/inputs/diskio/diskio.go +++ b/plugins/inputs/diskio/diskio.go @@ -220,4 +220,8 @@ func init() { inputs.Add("diskio", func() telegraf.Input { return &DiskIO{ps: ps, SkipSerialNumber: true} }) + // Backwards compatible alias + inputs.Add("io", func() telegraf.Input { + return &DiskIO{ps: ps, SkipSerialNumber: true} + }) }