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

TCollector Collector, prints CPU and RAM usage of collectors #276

Merged
merged 8 commits into from
Feb 16, 2016

Conversation

johann8384
Copy link
Member

Fixes #66

@johann8384 johann8384 changed the title Issue 66 TCollector Collector, prints CPU and RAM usage of collectors Feb 16, 2016
@johann8384 johann8384 added this to the 1.3.0 milestone Feb 16, 2016
Fabian Holler and others added 8 commits February 16, 2016 15:19
The following informations are collected:
- Number of running KVM processes
- CPU and memory statistics per KVM process, the kvm process can be
  identified with the following tags:
  - pid
  - If "-uuid" was passed to the KVM cmdline, the UUID is recorded
    as tag
- Number of running tcollector processes
- CPU and memory statistics of tcollector and his hardworking child
  processes.
  To identify a tcollector process the name of the executable is
  recorded in the name tag.

Metrics:
 - kvm.cputime
 - kvm.mem_bytes
 - kvm.processes
 - tcollector.cputime
 - tcollector.mem_bytes
Kernel < 2.6.24 don't have guest_time and cguest_time values in
/proc/%pid/stat. Added a check to make sure that the gatherer doesn't
crash on these kernel while trying to read non-existent values.
This was submitted and quickly exploded into "well maybe you should add this" scenario.
I stripped it down to only collect tcollector stats and named it appropriately for this narrow scope.

There is potential for a general process stat collector in the future.

Fixes #66
johann8384 added a commit that referenced this pull request Feb 16, 2016
TCollector Collector, prints CPU and RAM usage of collectors
@johann8384 johann8384 merged commit 29f04ec into master Feb 16, 2016
@johann8384 johann8384 deleted the ISSUE-66 branch February 16, 2016 21:37
@johann8384 johann8384 self-assigned this Feb 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant