@@ -5,6 +5,9 @@ The interrupts plugin gathers metrics about IRQs from `/proc/interrupts` and `/p
55### Configuration
66```
77[[inputs.interrupts]]
8+ # To report cpus as tags instead of fields use cpu_as_tags
9+ # cpu_as_tags = false
10+ #
811 ## To filter which IRQs to collect, make use of tagpass / tagdrop, i.e.
912 # [inputs.interrupts.tagdrop]
1013 # irq = [ "NET_RX", "TASKLET" ]
@@ -16,20 +19,32 @@ There are two measurements reported by this plugin.
1619- ` soft_interrupts ` gathers metrics from the ` /proc/softirqs ` file
1720
1821### Fields
19- - CPUx: the amount of interrupts for the IRQ handled by that CPU
20- - total: total amount of interrupts for all CPUs
22+ For cpu_as_tags=false (default):
23+ - CPUx: the amount of interrupts for the IRQ handled by the CPU
24+ - Total: sum of interrupts for the IRS for all CPUs
25+ For cpu_as_tags=true ():
26+ - Count: the amount of interrupts for the IRQ handled by CPU described in CPU tag
2127
2228### Tags
2329- irq: the IRQ
2430- type: the type of interrupt
2531- device: the name of the device that is located at that IRQ
32+ - cpu: the CPU (when cpus_as_tags=true)
2633
2734### Example Output
2835```
2936./telegraf --config ~/interrupts_config.conf --test
37+ For cpus_as_tags=false (default):
3038* Plugin: inputs.interrupts, Collection 1
31- > interrupts,irq=0,type=IO-APIC,device=2-edge\ timer,host=hostname CPU0=23i,total=23i 1489346531000000000
32- > interrupts,irq=1,host=hostname,type=IO-APIC,device=1-edge\ i8042 CPU0=9i,total=9i 1489346531000000000
33- > interrupts,irq=30,type=PCI-MSI,device=65537-edge\ virtio1-input.0,host=hostname CPU0=1i,total=1i 1489346531000000000
34- > soft_interrupts,irq=NET_RX,host=hostname CPU0=280879i,total=280879i 1489346531000000000
39+ > interrupts,irq=0,type=IO-APIC,device=2-edge\ timer,host=hostname,cpu=cpu0 count=23i 1489346531000000000
40+ > interrupts,irq=1,host=hostname,type=IO-APIC,device=1-edge\ i8042,cpu=cpu0 count=9i 1489346531000000000
41+ > interrupts,irq=30,type=PCI-MSI,device=65537-edge\ virtio1-input.0,host=hostname,cpu=cpu1 count=1i 1489346531000000000
42+ > soft_interrupts,irq=NET_RX,host=hostname,cpu=cpu0 count=280879i 1489346531000000000
43+
44+ For cpus_as_tags=true:
45+ > interrupts,cpu=cpu6,host=hostname,irq=PIW,type=Posted-interrupt\ wakeup\ event count=0i 1543539773000000000
46+ > interrupts,cpu=cpu7,host=hostname,irq=PIW,type=Posted-interrupt\ wakeup\ event count=0i 1543539773000000000
47+ > soft_interrupts,cpu=cpu0,host=hostname,irq=HI count=246441i 1543539773000000000
48+ > soft_interrupts,cpu=cpu1,host=hostname,irq=HI count=159154i 1543539773000000000
49+
3550```
0 commit comments