目录
输入和输出集成概述
ActiveMQ 输入插件通过其控制台 API 从 ActiveMQ 消息代理收集指标,从而提供对消息队列、主题和订阅者性能和状态的洞察。
此插件将 Telegraf 指标保存到 Apache IoTDB 后端,支持会话连接和数据插入。
集成详情
ActiveMQ
ActiveMQ 输入插件与 ActiveMQ 控制台 API 接口,以收集与队列、主题和订阅者相关的指标。 ActiveMQ 是一种广泛使用的开源消息代理,支持各种消息传递协议,并提供强大的 Web 控制台用于管理和监控。 此插件允许用户跟踪关键指标,包括队列大小、消费者计数和不同 ActiveMQ 实体中的消息计数,从而增强消息传递系统内的可观察性。 用户可以配置各种参数,例如 WebConsole URL 和基本身份验证凭据,以根据其环境定制插件。 收集的指标可用于监控消息传递应用程序的运行状况和性能,从而促进主动管理和故障排除。
IoTDB
Apache IoTDB(物联网数据库)是一种物联网原生数据库,具有高性能的数据管理和分析能力,可部署在边缘和云端。 其轻量级架构、高性能和丰富的功能集非常适合物联网工业领域中的海量数据存储、高速数据摄取和复杂分析。 IoTDB 与 Apache Hadoop、Spark 和 Flink 深度集成,进一步增强了其处理大规模数据和复杂处理任务的能力。
配置
ActiveMQ
[[inputs.activemq]]
## ActiveMQ WebConsole URL
url = "http://127.0.0.1:8161"
## Required ActiveMQ Endpoint
## deprecated in 1.11; use the url option
# server = "192.168.50.10"
# port = 8161
## Credentials for basic HTTP authentication
# username = "admin"
# password = "admin"
## Required ActiveMQ webadmin root path
# webadmin = "admin"
## Maximum time to receive response.
# response_timeout = "5s"
## Optional TLS Config
# tls_ca = "/etc/telegraf/ca.pem"
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
## Use TLS but skip chain & host verification
# insecure_skip_verify = false
IoTDB
[[outputs.iotdb]]
## Configuration of IoTDB server connection
host = "127.0.0.1"
# port = "6667"
## Configuration of authentication
# user = "root"
# password = "root"
## Timeout to open a new session.
## A value of zero means no timeout.
# timeout = "5s"
## Configuration of type conversion for 64-bit unsigned int
## IoTDB currently DOES NOT support unsigned integers (version 13.x).
## 32-bit unsigned integers are safely converted into 64-bit signed integers by the plugin,
## however, this is not true for 64-bit values in general as overflows may occur.
## The following setting allows to specify the handling of 64-bit unsigned integers.
## Available values are:
## - "int64" -- convert to 64-bit signed integers and accept overflows
## - "int64_clip" -- convert to 64-bit signed integers and clip the values on overflow to 9,223,372,036,854,775,807
## - "text" -- convert to the string representation of the value
# uint64_conversion = "int64_clip"
## Configuration of TimeStamp
## TimeStamp is always saved in 64bits int. timestamp_precision specifies the unit of timestamp.
## Available value:
## "second", "millisecond", "microsecond", "nanosecond"(default)
# timestamp_precision = "nanosecond"
## Handling of tags
## Tags are not fully supported by IoTDB.
## A guide with suggestions on how to handle tags can be found here:
## https://iotdb.apache.org/UserGuide/Master/API/InfluxDB-Protocol.html
##
## Available values are:
## - "fields" -- convert tags to fields in the measurement
## - "device_id" -- attach tags to the device ID
##
## For Example, a metric named "root.sg.device" with the tags `tag1: "private"` and `tag2: "working"` and
## fields `s1: 100` and `s2: "hello"` will result in the following representations in IoTDB
## - "fields" -- root.sg.device, s1=100, s2="hello", tag1="private", tag2="working"
## - "device_id" -- root.sg.device.private.working, s1=100, s2="hello"
# convert_tags_to = "device_id"
## Handling of unsupported characters
## Some characters in different versions of IoTDB are not supported in path name
## A guide with suggetions on valid paths can be found here:
## for iotdb 0.13.x -> https://iotdb.apache.org/UserGuide/V0.13.x/Reference/Syntax-Conventions.html#identifiers
## for iotdb 1.x.x and above -> https://iotdb.apache.org/UserGuide/V1.3.x/User-Manual/Syntax-Rule.html#identifier
##
## Available values are:
## - "1.0", "1.1", "1.2", "1.3" -- enclose in `` the world having forbidden character
## such as @ $ # : [ ] { } ( ) space
## - "0.13" -- enclose in `` the world having forbidden character
## such as space
##
## Keep this section commented if you don't want to sanitize the path
# sanitize_tag = "1.3"
输入和输出集成示例
ActiveMQ
-
主动队列监控:使用 ActiveMQ 插件实时监控高容量交易应用程序的队列大小。 此实现允许团队在队列大小超过特定阈值时接收警报,从而能够快速响应由积压引起的潜在停机时间,从而确保交易操作的持续可用性。
-
性能基线和异常检测:将此插件与机器学习框架集成,以建立消息吞吐量的性能基线。 通过分析通过此插件收集的历史数据,团队可以标记处理速率中的异常,从而更快地识别影响服务可靠性和性能的问题。
-
跨消息传递系统分析:将来自 ActiveMQ 的指标与来自集中式仪表板中其他消息传递系统的指标相结合。 用户可以可视化和比较性能数据(例如入队和出队速率),从而深入了解整体消息传递架构,并帮助优化不同代理之间的消息流。
-
订阅者性能洞察:利用此插件收集的订阅者指标来分析行为模式并优化消费者应用程序的配置。 了解诸如分派的队列大小和计数器值之类的指标可以指导调整,以提高处理效率和资源分配。
IoTDB
-
实时物联网监控:利用 IoTDB 插件从各种物联网设备收集传感器数据,并将其保存在 Apache IoTDB 后端中,从而促进对环境条件(如温度和湿度)的实时监控。 此用例使组织能够分析随时间变化的趋势并根据历史数据做出明智的决策,同时还利用 IoTDB 的高效存储和查询功能。
-
智慧农业数据收集:使用 IoTDB 插件从部署在田野中的智慧农业传感器收集指标。 通过将湿度水平、养分含量和大气条件传输到 IoTDB,农民可以访问有关最佳种植和浇水计划的详细见解,从而提高作物产量和资源管理水平。
-
能源消耗分析:利用 IoTDB 插件跟踪整个公用事业网络中智能电表的能源消耗指标。 此集成支持分析以识别使用高峰并预测未来的消耗模式,最终支持节能措施和改进的公用事业管理。
-
自动化工业设备监控:使用此插件从制造工厂的机械设备收集运行指标,并将其存储在 IoTDB 中进行分析。 这种设置可以帮助识别效率低下、预测性维护需求和运行异常,从而确保最佳性能并最大限度地减少意外停机时间。
反馈
感谢您成为我们社区的一份子! 如果您有任何一般性反馈或在这些页面上发现了任何错误,我们欢迎并鼓励您提出意见。 请在 InfluxDB 社区 Slack 中提交您的反馈。