Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing error in interrupt input plugin #4470

Closed
rawctl opened this issue Jul 26, 2018 · 2 comments
Closed

Parsing error in interrupt input plugin #4470

rawctl opened this issue Jul 26, 2018 · 2 comments
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@rawctl
Copy link

rawctl commented Jul 26, 2018

Relevant telegraf.conf:

[[inputs.interrupts]]
    # no further configuration

System info:

$ uname -a
Linux undisclosed 4.14.50-v7+ #1122 SMP Tue Jun 19 12:26:26 BST 2018 armv7l GNU/Linux
$ telegraf version
Telegraf v1.7.1 (git: release-1.7 4be18c1e)

Steps to reproduce:

  1. install telegraf
  2. enable interrupts input plugin

Expected behavior:

I expect Telegraf to gather interrupt metrics as described in the plugin readme.

Actual behavior:

Telegraf throws an error while gathering.

E! Error in plugin [inputs.interrupts]: Parsing /proc/interrupts: Unable to parse "usb_fiq" from "FIQ:              usb_fiq": strconv.ParseInt: parsing "usb_fiq": invalid syntax

Additional info:

Please notice that this machine is ARM-based.

$ cat /proc/interrupts
           CPU0       CPU1       CPU2       CPU3
 16:          0          0          0          0  bcm2836-timer   0 Edge      arch_timer
 17:  127224250  118424219  127224437  117885416  bcm2836-timer   1 Edge      arch_timer
 21:          0          0          0          0  bcm2836-pmu   9 Edge      arm-pmu
 23:    1549514          0          0          0  ARMCTRL-level   1 Edge      3f00b880.mailbox
 24:          2          0          0          0  ARMCTRL-level   2 Edge      VCHIQ doorbell
 46:          0          0          0          0  ARMCTRL-level  48 Edge      bcm2708_fb dma
 48:          0          0          0          0  ARMCTRL-level  50 Edge      DMA IRQ
 50:          0          0          0          0  ARMCTRL-level  52 Edge      DMA IRQ
 51:        208          0          0          0  ARMCTRL-level  53 Edge      DMA IRQ
 54:     883002          0          0          0  ARMCTRL-level  56 Edge      DMA IRQ
 59:          0          0          0          0  ARMCTRL-level  61 Edge      bcm2835-auxirq
 62:  521451447          0          0          0  ARMCTRL-level  64 Edge      dwc_otg, dwc_otg_pcd, dwc_otg_hcd:usb1
 86:     857597          0          0          0  ARMCTRL-level  88 Edge      mmc0
 87:       4938          0          0          0  ARMCTRL-level  89 Edge      uart-pl011
 92:       5669          0          0          0  ARMCTRL-level  94 Edge      mmc1
FIQ:              usb_fiq
IPI0:          0          0          0          0  CPU wakeup interrupts
IPI1:          0          0          0          0  Timer broadcast interrupts
IPI2:   23564958   23464876   23531165   23040826  Rescheduling interrupts
IPI3:     148438     639704     644266     588150  Function call interrupts
IPI4:          0          0          0          0  CPU stop interrupts
IPI5:    4348149    1843985    3819457    1822877  IRQ work interrupts
IPI6:          0          0          0          0  completion interrupts
@glinton
Copy link
Contributor

glinton commented Jul 26, 2018

Do any of the other stats get passed on to your output of choice, or is the usb_fiq causing a complete loss?

@rawctl
Copy link
Author

rawctl commented Jul 26, 2018

Everything else works fine, the plugin even manages to still provide the interrupts_soft measurement. However, the interrupts measurement is lost completely.

@glinton glinton added the bug unexpected problem or unintended behavior label Jul 26, 2018
glinton added a commit that referenced this issue Jul 31, 2018
@glinton glinton added this to the 1.7.3 milestone Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants