diff --git a/plugins/inputs/all/all.go b/plugins/inputs/all/all.go index 45d3f8d17..3e1f959fa 100644 --- a/plugins/inputs/all/all.go +++ b/plugins/inputs/all/all.go @@ -40,7 +40,7 @@ import ( _ "github.com/influxdata/telegraf/plugins/inputs/ecs" _ "github.com/influxdata/telegraf/plugins/inputs/elasticsearch" _ "github.com/influxdata/telegraf/plugins/inputs/ethtool" - _ "github.com/influxdata/telegraf/plugins/inputs/eventhub" + _ "github.com/influxdata/telegraf/plugins/inputs/eventhub_consumer" _ "github.com/influxdata/telegraf/plugins/inputs/exec" _ "github.com/influxdata/telegraf/plugins/inputs/execd" _ "github.com/influxdata/telegraf/plugins/inputs/fail2ban" diff --git a/plugins/inputs/eventhub/README.md b/plugins/inputs/eventhub_consumer/README.md similarity index 98% rename from plugins/inputs/eventhub/README.md rename to plugins/inputs/eventhub_consumer/README.md index f9b01d4b3..ae0907ca1 100644 --- a/plugins/inputs/eventhub/README.md +++ b/plugins/inputs/eventhub_consumer/README.md @@ -5,7 +5,7 @@ This plugin provides a consumer for use with Azure Event Hubs and Azure IoT Hub. ## Configuration ```toml -[[inputs.eventhub]] +[[inputs.eventhub_consumer]] ## The default behavior is to create a new Event Hub client from environment variables. ## This requires one of the following sets of environment variables to be set: ## @@ -95,4 +95,4 @@ The main focus for development of this plugin is Azure IoT hub: - Authentication with [AAD TokenProvider environment variables](https://github.com/Azure/azure-event-hubs-go#aad-tokenprovider-environment-variables) ## Not implemented: -- [Event Processor Host](https://github.com/Azure/azure-event-hubs-go#event-processor-host) (should only be needed when using multiple Telegraf instances consuming the same partition) \ No newline at end of file +- [Event Processor Host](https://github.com/Azure/azure-event-hubs-go#event-processor-host) (should only be needed when using multiple Telegraf instances consuming the same partition) diff --git a/plugins/inputs/eventhub/eventhub.go b/plugins/inputs/eventhub_consumer/eventhub_consumer.go similarity index 99% rename from plugins/inputs/eventhub/eventhub.go rename to plugins/inputs/eventhub_consumer/eventhub_consumer.go index dbdaeb0ab..d5e2be115 100644 --- a/plugins/inputs/eventhub/eventhub.go +++ b/plugins/inputs/eventhub_consumer/eventhub_consumer.go @@ -416,7 +416,7 @@ func (e *EventHub) Stop() { } func init() { - inputs.Add("eventhub", func() telegraf.Input { + inputs.Add("eventhub_consumer", func() telegraf.Input { return &EventHub{} }) }