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

Missing fields in procstat output #2403

Closed
andrii-rymar opened this issue Feb 13, 2017 · 3 comments
Closed

Missing fields in procstat output #2403

andrii-rymar opened this issue Feb 13, 2017 · 3 comments

Comments

@andrii-rymar
Copy link

andrii-rymar commented Feb 13, 2017

Bug report

It looks like the same problem as was mentioned in #1584 - IO and 2 other procstat metrics are missing in the resulting output.
The full list: num_fds, involuntary_context_switches, read_count, write_count, read_bytes are write_bytes.

Relevant telegraf.conf:

[[inputs.procstat]]
pattern = "test"

System info:

Checked with Telegraf 1.2.0-1 and 1.2.1-1 on CentOS 6.5/7 x64

Steps to reproduce:

  1. Setup procstat input in telegraf.conf
  2. Start telegraf
  3. Check DB for fields.

Expected behavior:

Presence of all fields mentioned in the procstat readme.

Actual behavior:

Several fields are missing:

  • num_fds
  • involuntary_context_switches
  • read_count
  • write_count
  • read_bytes
  • write_bytes.
@sparrc
Copy link
Contributor

sparrc commented Feb 13, 2017

this is probably a permissions issue, have you tried running telegraf as root or with sudo privileges? if you're running as a service then the telegraf user needs access to the entire procfs filesystem.

@sparrc
Copy link
Contributor

sparrc commented Feb 13, 2017

see #1300

@andrii-rymar
Copy link
Author

I see. And confirm that running telegraf as root solves the issue.

@sparrc sparrc closed this as completed Feb 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants