目录
强大的性能,无限的扩展
收集、组织和处理海量高速数据。当您将任何数据视为时间序列数据时,它都更有价值。借助 InfluxDB,这款排名第一的时间序列平台旨在与 Telegraf 一起扩展。
查看入门方法
输入和输出集成概述
ActiveMQ 输入插件通过其控制台 API 从 ActiveMQ 消息代理收集指标,从而深入了解消息队列、主题和订阅者的性能和状态。
Telegraf 的 SQL 插件有助于将指标存储在 SQL 数据库中。当配置为 Microsoft SQL Server 时,它支持特定的 DSN 格式和模式要求,从而实现与 SQL Server 的无缝集成。
集成详情
ActiveMQ
ActiveMQ 输入插件与 ActiveMQ 控制台 API 接口,以收集与队列、主题和订阅者相关的指标。ActiveMQ 是一款广泛使用的开源消息代理,支持各种消息协议,并提供强大的 Web 控制台用于管理和监控。该插件允许用户跟踪关键指标,包括队列大小、消费者计数以及不同 ActiveMQ 实体中的消息计数,从而增强消息传递系统内的可观测性。用户可以配置各种参数,例如 WebConsole URL 和基本身份验证凭据,以根据其环境定制插件。收集的指标可用于监控消息传递应用程序的运行状况和性能,从而促进主动管理和故障排除。
Microsoft SQL Server
Telegraf 的 Microsoft SQL Server SQL 输出插件旨在通过动态创建与传入数据结构匹配的表和列来捕获和存储指标数据。此集成利用 go-mssqldb 驱动程序,该驱动程序通过包含服务器、端口和数据库详细信息的 DSN 遵循 SQL Server 连接协议。尽管该驱动程序由于单元测试有限而被认为是实验性的,但它为动态模式生成和数据插入提供了强大的支持,从而可以对系统性能进行详细的时间戳记录。这种灵活性使其成为需要可靠且精细的指标日志记录的环境的宝贵工具,尽管其状态为实验性。
配置
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
Microsoft SQL Server
[[outputs.sql]]
## Database driver
## Valid options: mssql (Microsoft SQL Server), mysql (MySQL), pgx (Postgres),
## sqlite (SQLite3), snowflake (snowflake.com), clickhouse (ClickHouse)
driver = "mssql"
## Data source name
## For Microsoft SQL Server, the DSN typically includes the server, port, username, password, and database name.
## Example DSN: "sqlserver://username:password@localhost:1433?database=telegraf"
data_source_name = "sqlserver://username:password@localhost:1433?database=telegraf"
## Timestamp column name
timestamp_column = "timestamp"
## Table creation template
## Available template variables:
## {TABLE} - table name as a quoted identifier
## {TABLELITERAL} - table name as a quoted string literal
## {COLUMNS} - column definitions (list of quoted identifiers and types)
table_template = "CREATE TABLE {TABLE} ({COLUMNS})"
## Table existence check template
## Available template variables:
## {TABLE} - table name as a quoted identifier
table_exists_template = "SELECT 1 FROM {TABLE} LIMIT 1"
## Initialization SQL (optional)
init_sql = ""
## Maximum amount of time a connection may be idle. "0s" means connections are never closed due to idle time.
connection_max_idle_time = "0s"
## Maximum amount of time a connection may be reused. "0s" means connections are never closed due to age.
connection_max_lifetime = "0s"
## Maximum number of connections in the idle connection pool. 0 means unlimited.
connection_max_idle = 2
## Maximum number of open connections to the database. 0 means unlimited.
connection_max_open = 0
## Metric type to SQL type conversion
## You can customize the mapping if needed.
#[outputs.sql.convert]
# integer = "INT"
# real = "DOUBLE"
# text = "TEXT"
# timestamp = "TIMESTAMP"
# defaultvalue = "TEXT"
# unsigned = "UNSIGNED"
# bool = "BOOL"
输入和输出集成示例
ActiveMQ
-
主动队列监控:使用 ActiveMQ 插件实时监控高交易量交易应用程序的队列大小。此实现允许团队在队列大小超过特定阈值时接收警报,从而能够快速响应由积压造成的潜在停机时间,从而确保交易操作的持续可用性。
-
性能基线和异常检测:将此插件与机器学习框架集成,以建立消息吞吐量的性能基线。通过分析通过此插件收集的历史数据,团队可以标记处理速率的异常,从而更快地识别影响服务可靠性和性能的问题。
-
跨消息传递系统分析:在集中式仪表板中合并来自 ActiveMQ 的指标和来自其他消息传递系统的指标。用户可以可视化和比较性能数据(例如入队和出队速率),从而深入了解整体消息传递架构,并协助优化不同代理之间的消息流。
-
订阅者性能洞察:利用此插件收集的订阅者指标来分析行为模式并优化消费者应用程序的配置。了解诸如已分派队列大小和计数器值之类的指标可以指导调整,以提高处理效率和资源分配。
Microsoft SQL Server
-
企业应用程序监控:利用该插件捕获在 SQL Server 上运行的企业应用程序的详细性能指标。此设置使 IT 团队能够分析系统性能、跟踪事务时间并识别跨复杂多层环境的瓶颈。
-
动态基础设施审计:部署该插件以在 SQL Server 中创建基础设施变更和性能指标的动态审计日志。此用例非常适合需要实时监控和历史分析系统性能以进行合规性和优化的组织。
-
自动化性能基准测试:使用该插件持续记录和分析 SQL Server 数据库的性能指标。这实现了自动化基准测试,其中将历史数据与当前性能进行比较,从而有助于快速识别服务中的异常或降级。
-
集成 DevOps 仪表板:将该插件与 DevOps 监控工具集成,以将来自 SQL Server 的实时指标馈送到集中式仪表板中。这提供了应用程序运行状况的整体视图,使团队能够将 SQL Server 性能与应用程序级别的事件相关联,从而实现更快的故障排除和主动维护。
反馈
感谢您成为我们社区的一份子!如果您有任何一般性反馈或在这些页面上发现了任何错误,我们欢迎并鼓励您提供意见。请在 InfluxDB 社区 Slack 中提交您的反馈。
强大的性能,无限的扩展
收集、组织和处理海量高速数据。当您将任何数据视为时间序列数据时,它都更有价值。借助 InfluxDB,这款排名第一的时间序列平台旨在与 Telegraf 一起扩展。
查看入门方法