Azure 事件中心输出插件
此插件将指标写入 Azure Event Hubs 服务,格式为任何支持的 数据格式。指标以批次发送,每个消息负载包含一个指标对象,最好是 JSON 格式,因为这有助于与下游组件集成。
每个批次都发送到命名空间内的单个 Event Hub。如果未指定分区键,则批次将在所有 Event Hub 分区之间自动进行负载均衡(轮询)。
引入于: Telegraf v1.21.0 标签: cloud,datastore 操作系统支持: all
全局配置选项
插件支持其他全局和插件配置设置,用于修改指标、标签和字段,创建别名以及配置插件顺序等任务。更多详情请参阅 CONFIGURATION.md。
配置
# Configuration for Event Hubs output plugin
[[outputs.event_hubs]]
## Full connection string to the Event Hub instance. The shared access key
## must have "Send" permissions on the target Event Hub.
connection_string = "Endpoint=sb://namespace.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=superSecret1234=;EntityPath=hubName"
## Partition key to use for the event
## Metric tag or field name to use for the event partition key. The value of
## this tag or field is set as the key for events if it exists. If both, tag
## and field, exist the tag is preferred.
# partition_key = ""
## Set the maximum batch message size in bytes
## The allowable size depends on the Event Hub tier, see
## https://learn.microsoft.com/azure/event-hubs/event-hubs-quotas#basic-vs-standard-vs-premium-vs-dedicated-tiers
## for details. If unset the default size defined by Azure Event Hubs is
## used (currently 1,000,000 bytes)
# max_message_size = "1MB"
## Timeout for sending the data
# timeout = "30s"
## Data format to output.
## Each data format has its own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
data_format = "json"此页面是否有帮助?
感谢您的反馈!
支持和反馈
感谢您成为我们社区的一员!我们欢迎并鼓励您对 Telegraf 和本文档提出反馈和 bug 报告。要获取支持,请使用以下资源
具有年度合同或支持合同的客户可以 联系 InfluxData 支持。