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

procstat memory fields missing in aggregation #4293

Closed
adrianlzt opened this issue Jun 15, 2018 · 2 comments
Closed

procstat memory fields missing in aggregation #4293

adrianlzt opened this issue Jun 15, 2018 · 2 comments
Labels
area/procstat bug unexpected problem or unintended behavior
Milestone

Comments

@adrianlzt
Copy link
Contributor

Relevant telegraf.conf:

[[outputs.file]]
  files = ["stdout"]

[agent]
  interval = "3s"
  flush_interval = "3s"

[[inputs.procstat]]
  pattern = "nginx: worker"
  fieldpass = ["pid","memory_rss"]

[[aggregators.minmax]]
  period = "3s"

System info:

Telegraf v1.7.0 (git: release-1.7 f4d22dd)

Arch Linux

Steps to reproduce:

  1. telegraf -config telegraf.conf

Expected behavior:

All fields from procstat being processed by the aggregator

Actual behavior:

Only pid field gets computed by the aggregator.

procstat,host=archer,pattern=nginx:\ worker,process_name=nginx pid=29094i,memory_rss=1949696i 1529058174000000000                                                                                                  
procstat,host=archer,pattern=nginx:\ worker,process_name=nginx pid=29080i,memory_rss=1949696i 1529058174000000000                                                                                                  
procstat,host=archer,pattern=nginx:\ worker,process_name=nginx pid=29084i,memory_rss=1949696i 1529058174000000000                                                                                                  
procstat,host=archer,pattern=nginx:\ worker,process_name=nginx memory_rss=1949696i,pid=29094i 1529058177000000000                                                                                                  
procstat,host=archer,pattern=nginx:\ worker,process_name=nginx pid=29080i,memory_rss=1949696i 1529058177000000000                                                                                                  
procstat,host=archer,pattern=nginx:\ worker,process_name=nginx memory_rss=1949696i,pid=29084i 1529058177000000000                                                                                                  
procstat,host=archer,pattern=nginx:\ worker,process_name=nginx pid_min=29080,pid_max=29094 1529058177000000000

Additional info:

With the procstat input, only the memory_* fields are not processed.

@adrianlzt
Copy link
Contributor Author

adrianlzt commented Jun 15, 2018

convert function fails if the number is not float64 or int64, but memory fields, comming from psutil lib, are uint64.

Same in basicstats aggregator

@danielnelson danielnelson added this to the 1.7.1 milestone Jun 15, 2018
@danielnelson danielnelson added bug unexpected problem or unintended behavior area/procstat labels Jun 15, 2018
@danielnelson
Copy link
Contributor

Closed by #4294

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/procstat bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants