中断输入插件
此插件从中断 (/proc/interrupts) 和软中断 (/proc/softirqs) 收集有关 IRQ 的指标。
引入于: Telegraf v1.3.0 标签: system 操作系统支持: all
全局配置选项
插件支持其他全局和插件配置设置,用于修改指标、标签和字段,创建别名以及配置插件顺序等任务。更多详情请参阅 CONFIGURATION.md。
配置
# This plugin gathers interrupts data from /proc/interrupts and /proc/softirqs.
[[inputs.interrupts]]
## When set to true, cpu metrics are tagged with the cpu. Otherwise cpu is
## stored as a field.
##
## The default is false for backwards compatibility, and will be changed to
## true in a future version. It is recommended to set to true on new
## deployments.
# cpu_as_tag = false
## To filter which IRQs to collect, make use of tagpass / tagdrop:
# [inputs.interrupts.tagdrop]
# irq = [ "NET_RX", "TASKLET" ]Metrics
根据 cpu_as_tag 的值,有两种样式。
当 cpu_as_tag = false 时
interrupts
- 标签 (tags)
- irq (IRQ 名称)
- type
- device (位于 IRQ 的设备的名称)
- cpu
- 字段 (fields)
- cpu (int, 每个 CPU 的中断数)
- total (int, 中断总数)
- 标签 (tags)
soft_interrupts
- 标签 (tags)
- irq (IRQ 名称)
- type
- device (位于 IRQ 的设备的名称)
- cpu
- 字段 (fields)
- cpu (int, 每个 CPU 的中断数)
- total (int, 中断总数)
- 标签 (tags)
当 cpu_as_tag = true 时
interrupts
- 标签 (tags)
- irq (IRQ 名称)
- type
- device (位于 IRQ 的设备的名称)
- cpu
- 字段 (fields)
- count (int, 中断数)
- 标签 (tags)
soft_interrupts
- 标签 (tags)
- irq (IRQ 名称)
- type
- device (位于 IRQ 的设备的名称)
- cpu
- 字段 (fields)
- count (int, 中断数)
- 标签 (tags)
示例输出
当 cpu_as_tag = false 时
interrupts,irq=0,type=IO-APIC,device=2-edge\ timer,cpu=cpu0 count=23i 1489346531000000000
interrupts,irq=1,type=IO-APIC,device=1-edge\ i8042,cpu=cpu0 count=9i 1489346531000000000
interrupts,irq=30,type=PCI-MSI,device=65537-edge\ virtio1-input.0,cpu=cpu1 count=1i 1489346531000000000
soft_interrupts,irq=NET_RX,cpu=cpu0 count=280879i 1489346531000000000当 cpu_as_tag = true 时
interrupts,cpu=cpu6,irq=PIW,type=Posted-interrupt\ wakeup\ event count=0i 1543539773000000000
interrupts,cpu=cpu7,irq=PIW,type=Posted-interrupt\ wakeup\ event count=0i 1543539773000000000
soft_interrupts,cpu=cpu0,irq=HI count=246441i 1543539773000000000
soft_interrupts,cpu=cpu1,irq=HI count=159154i 1543539773000000000此页面是否有帮助?
感谢您的反馈!
支持和反馈
感谢您成为我们社区的一员!我们欢迎并鼓励您对 Telegraf 和本文档提出反馈和 bug 报告。要获取支持,请使用以下资源
具有年度合同或支持合同的客户可以 联系 InfluxData 支持。