2017-04-13 22:53:02 +00:00
|
|
|
# Interrupts Input Plugin
|
|
|
|
|
|
|
|
The interrupts plugin gathers metrics about IRQs from `/proc/interrupts` and `/proc/softirqs`.
|
|
|
|
|
|
|
|
### Configuration
|
2018-11-30 23:00:38 +00:00
|
|
|
```toml
|
2017-04-13 22:53:02 +00:00
|
|
|
[[inputs.interrupts]]
|
2018-11-30 23:00:38 +00:00
|
|
|
## 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
|
|
|
|
|
2017-04-14 20:40:36 +00:00
|
|
|
## To filter which IRQs to collect, make use of tagpass / tagdrop, i.e.
|
|
|
|
# [inputs.interrupts.tagdrop]
|
2018-11-30 23:00:38 +00:00
|
|
|
# irq = [ "NET_RX", "TASKLET" ]
|
2017-04-13 22:53:02 +00:00
|
|
|
```
|
|
|
|
|
2018-11-30 23:00:38 +00:00
|
|
|
### Metrics
|
|
|
|
|
|
|
|
There are two styles depending on the value of `cpu_as_tag`.
|
|
|
|
|
|
|
|
With `cpu_as_tag = false`:
|
|
|
|
|
|
|
|
- interrupts
|
|
|
|
- tags:
|
|
|
|
- irq (IRQ name)
|
|
|
|
- type
|
|
|
|
- device (name of the device that is located at the IRQ)
|
|
|
|
- cpu
|
|
|
|
- fields:
|
|
|
|
- cpu (int, number of interrupts per cpu)
|
|
|
|
- total (int, total number of interrupts)
|
2017-04-13 22:53:02 +00:00
|
|
|
|
2018-11-30 23:00:38 +00:00
|
|
|
- soft_interrupts
|
|
|
|
- tags:
|
|
|
|
- irq (IRQ name)
|
|
|
|
- type
|
|
|
|
- device (name of the device that is located at the IRQ)
|
|
|
|
- cpu
|
|
|
|
- fields:
|
|
|
|
- cpu (int, number of interrupts per cpu)
|
|
|
|
- total (int, total number of interrupts)
|
2017-04-13 22:53:02 +00:00
|
|
|
|
2018-11-30 23:00:38 +00:00
|
|
|
With `cpu_as_tag = true`:
|
|
|
|
|
|
|
|
- interrupts
|
|
|
|
- tags:
|
|
|
|
- irq (IRQ name)
|
|
|
|
- type
|
|
|
|
- device (name of the device that is located at the IRQ)
|
|
|
|
- cpu
|
|
|
|
- fields:
|
|
|
|
- count (int, number of interrupts)
|
|
|
|
|
|
|
|
- soft_interrupts
|
|
|
|
- tags:
|
|
|
|
- irq (IRQ name)
|
|
|
|
- type
|
|
|
|
- device (name of the device that is located at the IRQ)
|
|
|
|
- cpu
|
|
|
|
- fields:
|
|
|
|
- count (int, number of interrupts)
|
2017-04-13 22:53:02 +00:00
|
|
|
|
|
|
|
### Example Output
|
2018-11-30 23:00:38 +00:00
|
|
|
|
|
|
|
With `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
|
2017-04-13 22:53:02 +00:00
|
|
|
```
|
2018-11-30 22:42:55 +00:00
|
|
|
|
2018-11-30 23:00:38 +00:00
|
|
|
With `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
|
2017-04-13 22:53:02 +00:00
|
|
|
```
|