目录
输入和输出集成概述
此插件报告 Suricata IDS/IPS 引擎的内部性能计数器,并处理传入数据以适应 Telegraf 的格式。
此插件允许使用 Metrics API 将指标发送到 New Relic Insights,从而有效监控和分析应用程序性能。
集成详情
Suricata
Suricata 插件捕获并报告来自 Suricata IDS/IPS 引擎的内部性能指标,其中包括各种统计信息,例如流量、内存使用率、正常运行时间以及流和警报的计数器。此插件监听来自 Suricata 的 JSON 格式的日志输出,使其能够解析和格式化数据以与 Telegraf 集成。它作为服务输入插件运行,这意味着它主动等待来自 Suricata 的指标或事件,而不是按预定义的时间间隔收集指标。该插件支持不同指标版本的配置,从而提高了灵活性和详细的数据收集能力。
New Relic
此插件利用 Metrics API 将指标写入 New Relic Insights,Metrics API 提供了一种将时序数据发送到 New Relic 平台的强大机制。用户必须首先获取 Insights API 密钥以验证和授权其数据提交。该插件旨在促进与 New Relic 的监控和分析功能轻松集成,支持各种指标类型并允许高效的数据处理。核心功能包括为指标添加前缀以更好地识别、API 请求的可自定义超时以及支持代理设置以增强连接性。用户必须根据其要求配置这些选项,以实现数据无缝流入 New Relic,从而进行全面的实时分析和洞察。
配置
Suricata
[[inputs.suricata]]
## Source
## Data sink for Suricata stats log. This is expected to be a filename of a
## unix socket to be created for listening.
# source = "/var/run/suricata-stats.sock"
## Delimiter
## Used for flattening field keys, e.g. subitem "alert" of "detect" becomes
## "detect_alert" when delimiter is "_".
# delimiter = "_"
## Metric version
## Version 1 only collects stats and optionally will look for alerts if
## the configuration setting alerts is set to true.
## Version 2 parses any event type message by default and produced metrics
## under a single metric name using a tag to differentiate between event
## types. The timestamp for the message is applied to the generated metric.
## Additional tags and fields are included as well.
# version = "1"
## Alerts
## In metric version 1, only status is captured by default, alerts must be
## turned on with this configuration option. This option does not apply for
## metric version 2.
# alerts = false
New Relic
[[outputs.newrelic]]
## The 'insights_key' parameter requires a NR license key.
## New Relic recommends you create one
## with a convenient name such as TELEGRAF_INSERT_KEY.
## reference: https://docs.newrelic.com/docs/apis/intro-apis/new-relic-api-keys/#ingest-license-key
# insights_key = "New Relic License Key Here"
## Prefix to add to add to metric name for easy identification.
## This is very useful if your metric names are ambiguous.
# metric_prefix = ""
## Timeout for writes to the New Relic API.
# timeout = "15s"
## HTTP Proxy override. If unset use values from the standard
## proxy environment variables to determine proxy, if any.
# http_proxy = "http://corporate.proxy:3128"
## Metric URL override to enable geographic location endpoints.
# If not set use values from the standard
# metric_url = "https://metric-api.newrelic.com/metric/v1"
输入和输出集成示例
Suricata
-
网络流量分析:利用 Suricata 插件跟踪有关网络入侵尝试和性能的详细指标,帮助实时威胁检测和响应。通过可视化捕获的警报和流量统计信息,安全团队可以快速查明漏洞并降低风险。
-
性能监控仪表板:使用 Suricata Telegraf 插件指标创建一个仪表板,以监控 IDS/IPS 引擎的健康状况和性能。此用例概述了内存使用率、捕获的数据包和警报统计信息,使团队能够保持最佳运行状态。
-
自动化安全报告:利用该插件生成有关警报统计信息和流量模式的定期报告,帮助安全分析师识别长期趋势并制定战略防御计划。自动化报告还可以确保持续评估网络的安全态势。
-
实时警报处理:将 Suricata 的警报指标集成到更广泛的事件响应自动化框架中。通过整合来自 Suricata 插件的输入,组织可以开发用于警报和自动化响应工作流的智能触发器,从而缩短对潜在威胁的响应时间。
New Relic
-
应用程序性能监控:使用 New Relic Telegraf 插件将应用程序性能指标从 Web 服务发送到 New Relic Insights。通过集成此插件,开发人员可以收集响应时间、错误率和吞吐量等数据,使团队能够实时监控应用程序运行状况,并在问题影响用户之前快速解决问题。此设置有助于主动管理应用程序性能和用户体验。
-
基础设施指标聚合:利用此插件聚合和发送来自各种服务器的系统级指标(CPU 使用率、内存消耗等)到 New Relic。这有助于系统管理员保持对基础设施性能的全面了解,从而促进容量规划并识别潜在的瓶颈。通过在 New Relic 中集中指标,团队可以可视化随时间变化的趋势,并就资源分配做出明智的决策。
-
多租户应用程序的动态指标命名:使用 metric_prefix 选项实现动态前缀,以区分多租户应用程序中的不同租户。通过配置插件在指标名称中包含每个租户的唯一标识符,团队可以分析每个租户的使用模式和性能指标。这为租户行为提供了宝贵的见解,支持定制优化并提高不同客户群的服务质量。
-
实时异常检测:将 New Relic 插件与警报机制相结合,以根据异常指标模式触发通知。通过发送请求计数和响应时间等指标,团队可以在 New Relic 中设置阈值,当阈值被突破时,将自动提醒相关方。这种用户驱动的方法支持对潜在问题做出立即响应,防止问题升级为更大的事件。
反馈
感谢您成为我们社区的一份子!如果您有任何一般性反馈或在这些页面上发现了任何错误,我们欢迎并鼓励您提出意见。请在 InfluxDB 社区 Slack 中提交您的反馈。