目录
强大的性能,无限的扩展能力
收集、组织和处理海量高速数据。 当您将其视为时间序列数据时,任何数据都更有价值。 使用 InfluxDB,这是排名第一的时间序列平台,旨在通过 Telegraf 进行扩展。
查看入门方法
输入和输出集成概述
Webhooks 插件允许 Telegraf 通过 Webhooks 接收和处理来自各种外部服务的 HTTP 请求。 此插件使用户能够收集实时指标和事件,并将它们集成到其监控解决方案中。
Sumo Logic 插件旨在促进将指标从 Telegraf 发送到 Sumo Logic 的 HTTP 源。 通过使用此插件,用户可以在 Sumo Logic 平台上分析其指标数据,利用各种输出数据格式。
集成详情
Webhooks
此 Telegraf 插件旨在通过启动注册多个 webhook 端点的 HTTP 服务器来充当 webhook 侦听器。 它提供了一种通过捕获发送到定义路径的 HTTP 请求来收集来自各种服务的事件的方法。 每个服务都可以配置其特定的身份验证详细信息和请求处理选项。 该插件的突出之处在于允许与任何 Telegraf 输出插件集成,使其在事件驱动的架构中具有通用性。 通过有效接收事件,它为实时监控和响应系统开辟了可能性,这对于需要即时事件处理和处理的现代应用程序至关重要。
Sumo Logic
此插件有助于将指标传输到 Sumo Logic 的 HTTP 源,并为 HTTP 消息采用指定的数据格式。 Telegraf(必须是 1.16.0 或更高版本)可以发送以多种格式编码的指标,包括 graphite、carbon2 和 prometheus。 这些格式对应于 Sumo Logic 识别的不同内容类型,确保正确解释指标以进行分析。 与 Sumo Logic 的集成使用户能够利用全面的分析平台,从而从其指标数据中实现丰富的可视化和见解。 该插件提供了配置选项,例如设置 HTTP 指标源的 URL、选择数据格式以及指定超时和请求大小等其他参数,这些参数增强了数据监控工作流程的灵活性和控制力。
配置
Webhooks
[[inputs.webhooks]]
## Address and port to host Webhook listener on
service_address = ":1619"
## Maximum duration before timing out read of the request
# read_timeout = "10s"
## Maximum duration before timing out write of the response
# write_timeout = "10s"
[inputs.webhooks.filestack]
path = "/filestack"
## HTTP basic auth
#username = ""
#password = ""
[inputs.webhooks.github]
path = "/github"
# secret = ""
## HTTP basic auth
#username = ""
#password = ""
[inputs.webhooks.mandrill]
path = "/mandrill"
## HTTP basic auth
#username = ""
#password = ""
[inputs.webhooks.rollbar]
path = "/rollbar"
## HTTP basic auth
#username = ""
#password = ""
[inputs.webhooks.papertrail]
path = "/papertrail"
## HTTP basic auth
#username = ""
#password = ""
[inputs.webhooks.particle]
path = "/particle"
## HTTP basic auth
#username = ""
#password = ""
[inputs.webhooks.artifactory]
path = "/artifactory"
Sumo Logic
[[outputs.sumologic]]
## Unique URL generated for your HTTP Metrics Source.
## This is the address to send metrics to.
# url = "https://events.sumologic.net/receiver/v1/http/"
## Data format to be used for sending metrics.
## This will set the "Content-Type" header accordingly.
## Currently supported formats:
## * graphite - for Content-Type of application/vnd.sumologic.graphite
## * carbon2 - for Content-Type of application/vnd.sumologic.carbon2
## * prometheus - for Content-Type of application/vnd.sumologic.prometheus
##
## More information can be found at:
## https://help.sumologic.com/03Send-Data/Sources/02Sources-for-Hosted-Collectors/HTTP-Source/Upload-Metrics-to-an-HTTP-Source#content-type-headers-for-metrics
##
## NOTE:
## When unset, telegraf will by default use the influx serializer which is currently unsupported
## in HTTP Source.
data_format = "carbon2"
## Timeout used for HTTP request
# timeout = "5s"
## Max HTTP request body size in bytes before compression (if applied).
## By default 1MB is recommended.
## NOTE:
## Bear in mind that in some serializer a metric even though serialized to multiple
## lines cannot be split any further so setting this very low might not work
## as expected.
# max_request_body_size = 1000000
## Additional, Sumo specific options.
## Full list can be found here:
## https://help.sumologic.com/03Send-Data/Sources/02Sources-for-Hosted-Collectors/HTTP-Source/Upload-Metrics-to-an-HTTP-Source#supported-http-headers
## Desired source name.
## Useful if you want to override the source name configured for the source.
# source_name = ""
## Desired host name.
## Useful if you want to override the source host configured for the source.
# source_host = ""
## Desired source category.
## Useful if you want to override the source category configured for the source.
# source_category = ""
## Comma-separated key=value list of dimensions to apply to every metric.
## Custom dimensions will allow you to query your metrics at a more granular level.
# dimensions = ""
</code></pre>
输入和输出集成示例
Webhooks
-
来自 Github 的实时通知:将 Webhooks 输入插件与 Github 集成,以接收有关事件(例如拉取请求、提交和问题)的实时通知。 这使开发团队可以立即监控其存储库中的关键更改和更新,从而改善协作和响应时间。
-
使用 Rollbar 进行自动警报:使用此插件侦听 Rollbar 报告的错误,使团队能够快速响应生产中的错误和问题。 通过将这些警报转发到集中式监控系统,团队可以根据严重性确定响应的优先级,并防止停机时间升级。
-
来自 Filestack 的性能监控:捕获来自 Filestack 的事件,以跟踪文件上传、转换和错误。 此设置有助于企业了解用户与文件管理流程的交互,优化工作流程并确保文件服务的高可用性。
-
使用 Papertrail 进行集中式日志记录:通过 Webhooks 将发送到 Papertrail 的所有日志绑定在一起,从而使您可以整合日志记录策略。 通过实时日志转发,团队可以有效地分析趋势和异常,确保他们保持对关键操作的可见性。
Sumo Logic
-
实时系统监控仪表板:利用 Sumo Logic 插件将来自服务器的性能指标持续馈送到 Sumo Logic 仪表板中。 此设置使技术团队能够实时可视化系统健康状况和负载,从而通过详细的图表和指标更快地识别任何性能瓶颈或系统故障。
-
自动化警报系统:配置插件以发送指标,这些指标会在 Sumo Logic 中触发针对特定阈值的警报,例如 CPU 使用率或内存消耗。 通过设置自动化警报,团队可以在问题升级为严重故障之前主动解决问题,从而显着缩短响应时间并提高整体系统可靠性。
-
跨系统指标聚合:跨不同环境(开发、测试、生产)集成多个 Telegraf 实例,并使用此插件将所有指标汇集到中央 Sumo Logic 实例。 这种聚合支持跨环境的全面分析,从而在整个软件开发生命周期中促进更好的监控和知情的决策。
-
具有维度跟踪的自定义指标:使用 Sumo Logic 插件发送自定义指标,其中包括识别基础设施各个方面的维度(例如,环境、服务类型)。 这种精细的跟踪允许进行更定制的分析,使您的团队能够剖析不同应用程序层或业务功能的性能。
反馈
感谢您成为我们社区的一份子! 如果您有任何一般性反馈或在这些页面上发现任何错误,我们欢迎并鼓励您提出意见。 请在 InfluxDB 社区 Slack 中提交您的反馈。
强大的性能,无限的扩展能力
收集、组织和处理海量高速数据。 当您将其视为时间序列数据时,任何数据都更有价值。 使用 InfluxDB,这是排名第一的时间序列平台,旨在通过 Telegraf 进行扩展。
查看入门方法