forked from influxdata/telegraf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The plugin reports IRQ metrics to telegraf based on IRQ instead of CPU. It now parses `/proc/softirqs` as a separate measurement. It also collects additional metrics including IRQ type, device and IRQ value total.
- Loading branch information
1 parent
079c2f4
commit 6c92430
Showing
2 changed files
with
81 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,34 @@ | ||
# Irqstat Input Plugin | ||
|
||
The irqstat plugin gathers metrics about the interrupt types and associated values for each CPU present on a system. | ||
The irqstat plugin gathers metrics about the interrupt types and associated values from `/proc/interrupts` and `/proc/softirqs` for each CPU present on a system. | ||
|
||
### Configuration | ||
``` | ||
[[inputs.irqstat]] | ||
include = ["0", "1"] | ||
include = ["0", "1", "30", "NET_RX"] | ||
``` | ||
|
||
The above configuration would result in an output similar to: | ||
``` | ||
./telegraf -config ~/irqstat_config.conf -test | ||
* Plugin: inputs.irqstat, Collection 1 | ||
> irqstat,host=hostname,cpu=CPU0 1=9i,0=22i 1488751337000000000 | ||
> interrupts,irq=30,type=PCI-MSI,device=65537-edge\ virtio1-input.0,host=hostname CPU0=1i,total=1i 1489346531000000000 | ||
> interrupts,irq=1,host=hostname,type=IO-APIC,device=1-edge\ i8042 CPU0=9i,total=9i 1489346531000000000 | ||
> soft_interrupts,irq=NET_RX,host=hostname CPU0=280879i,total=280879i 1489346531000000000 | ||
> interrupts,irq=0,type=IO-APIC,device=2-edge\ timer,host=hostname CPU0=23i,total=23i 1489346531000000000 | ||
``` | ||
|
||
# Measurements | ||
|
||
There is only one measurement reported by this plugin, `irqstat`: | ||
- <strong>Fields:</strong> IRQs | ||
- <strong>Tags:</strong> CPUs | ||
There are two measurements reported by this plugin. | ||
- `interrupts` reports metrics from the `/proc/interrupts` file | ||
- `soft_interrupts` reports metrics from the `/proc/softirqs` file | ||
|
||
Depending on the content of each file there will multiple tags and fields for each measurement | ||
- <strong>Fields:</strong> | ||
- CPUx: the IRQ value based on CPU number | ||
- Total: total IRQ value of all CPUs | ||
- <strong>Tags:</strong> | ||
- IRQ: the IRQ | ||
- Type: the type associated with the IRQ | ||
- Device: the device associated with the IRQ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters