inputs

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Deprecations = map[string]telegraf.DeprecationInfo{
	"aerospike": {
		Since:     "1.30.0",
		RemovalIn: "1.40.0",
		Notice:    "use 'inputs.prometheus' with the Aerospike Prometheus Exporter instead",
	},
	"cassandra": {
		Since:     "1.7.0",
		RemovalIn: "1.30.0",
		Notice:    "use 'inputs.jolokia2' with the 'cassandra.conf' example configuration instead",
	},
	"cisco_telemetry_gnmi": {
		Since:     "1.15.0",
		RemovalIn: "1.35.0",
		Notice:    "has been renamed to 'gnmi'",
	},
	"http_listener": {
		Since:     "1.9.0",
		RemovalIn: "1.35.0",
		Notice:    "has been renamed to 'influxdb_listener', use 'inputs.influxdb_listener' or 'inputs.http_listener_v2' instead",
	},
	"httpjson": {
		Since:     "1.6.0",
		RemovalIn: "1.30.0",
		Notice:    "use 'inputs.http' instead",
	},
	"io": {
		Since:     "0.10.0",
		RemovalIn: "1.30.0",
		Notice:    "use 'inputs.diskio' instead",
	},
	"jolokia": {
		Since:     "1.5.0",
		RemovalIn: "1.30.0",
		Notice:    "use 'inputs.jolokia2' instead",
	},
	"kafka_consumer_legacy": {
		Since:     "1.4.0",
		RemovalIn: "1.30.0",
		Notice:    "use 'inputs.kafka_consumer' instead, NOTE: 'kafka_consumer' only supports Kafka v0.8+",
	},
	"KNXListener": {
		Since:     "1.20.1",
		RemovalIn: "1.35.0",
		Notice:    "has been renamed to 'knx_listener'",
	},
	"logparser": {
		Since:     "1.15.0",
		RemovalIn: "1.35.0",
		Notice:    "use 'inputs.tail' with 'grok' data format instead",
	},
	"sflow": {
		Since:     "1.31.0",
		RemovalIn: "1.40.0",
		Notice:    "use 'inputs.netflow' instead",
	},
	"snmp_legacy": {
		Since:     "1.0.0",
		RemovalIn: "1.30.0",
		Notice:    "use 'inputs.snmp' instead",
	},
	"tcp_listener": {
		Since:     "1.3.0",
		RemovalIn: "1.30.0",
		Notice:    "use 'inputs.socket_listener' instead",
	},
	"udp_listener": {
		Since:     "1.3.0",
		RemovalIn: "1.30.0",
		Notice:    "use 'inputs.socket_listener' instead",
	},
}

Deprecations lists the deprecated plugins

View Source
var Inputs = make(map[string]Creator)

Inputs is a map that holds all registered input plugins by their name.

Functions

func Add

func Add(name string, creator Creator)

Add registers a new input plugin with the given name and creator function.

Types

type Creator

type Creator func() telegraf.Input

Creator is a function type that creates a new instance of a telegraf.Input.