Skip to content

Commit

Permalink
Use keyed fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Rebhan committed Nov 9, 2021
1 parent 8773537 commit 0e92cbe
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 10 deletions.
45 changes: 36 additions & 9 deletions plugins/inputs/deprecations.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,40 @@ package inputs
import "github.com/influxdata/telegraf"

var Deprecations = map[string]telegraf.DeprecationInfo{
"cassandra": {"1.7", "", "use 'inputs.jolokia2' with the 'cassandra.conf' example configuration instead"},
"http_listener_v2": {"1.9", "", "has been renamed to 'influxdb_listener', use 'inputs.influxdb_listener' or 'inputs.influxdb_listener_v2' instead"},
"httpjson": {"1.6", "", "use 'inputs.http' instead"},
"jolokia": {"1.5", "", "use 'inputs.jolokia2' instead"},
"kafka_consumer_legacy": {"1.20", "", "use 'inputs.kafka_consumer' instead, NOTE: 'kafka_consumer' only supports Kafka v0.8+"},
"logparser": {"1.15", "", "use 'inputs.tail' with 'grok' data format instead"},
"snmp_legacy": {"1.20", "", "use 'inputs.snmp' instead"},
"tcp_listener": {"1.3", "", "use 'inputs.socket_listener' instead"},
"udp_listener": {"1.3", "", "use 'inputs.socket_listener' instead"},
"cassandra": {
Since: "1.7",
Notice: "use 'inputs.jolokia2' with the 'cassandra.conf' example configuration instead",
},
"http_listener_v2": {
Since: "1.9",
Notice: "has been renamed to 'influxdb_listener', use 'inputs.influxdb_listener' or 'inputs.influxdb_listener_v2' instead",
},
"httpjson": {
Since: "1.6",
Notice: "use 'inputs.http' instead",
},
"jolokia": {
Since: "1.5",
Notice: "use 'inputs.jolokia2' instead",
},
"kafka_consumer_legacy": {
Since: "1.20",
Notice: "use 'inputs.kafka_consumer' instead, NOTE: 'kafka_consumer' only supports Kafka v0.8+",
},
"logparser": {
Since: "1.15",
Notice: "use 'inputs.tail' with 'grok' data format instead",
},
"snmp_legacy": {
Since: "1.20",
Notice: "use 'inputs.snmp' instead",
},
"tcp_listener": {
Since: "1.3",
Notice: "use 'inputs.socket_listener' instead",
},
"udp_listener": {
Since: "1.3",
Notice: "use 'inputs.socket_listener' instead",
},
}
5 changes: 4 additions & 1 deletion plugins/outputs/deprecations.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ package outputs
import "github.com/influxdata/telegraf"

var Deprecations = map[string]telegraf.DeprecationInfo{
"riemann_legacy": {"1.20", "", "use 'outputs.riemann' instead (see https://github.com/influxdata/telegraf/issues/1878)"},
"riemann_legacy": {
Since: "1.20",
Notice: "use 'outputs.riemann' instead (see https://github.com/influxdata/telegraf/issues/1878)",
},
}

0 comments on commit 0e92cbe

Please sign in to comment.