collector/cpu: split cpu freq metrics into separate collector (#1253)

The cpu frequency information is not always needed and/or available.
This change allows the cpu frequency metrics to be enabled/disabled
separately from the other cpu metrics, and also prevents a frequency
metric failure (such as a parse error) from failing the main cpu
collector.

Fixes #1241

Signed-off-by: Paul Gier <pgier@redhat.com>
This commit is contained in:
Paul Gier 2019-02-19 10:22:54 -06:00 committed by Ben Kochie
commit cc847f2f44
9 changed files with 241 additions and 175 deletions

View file

@ -8,6 +8,7 @@ enabled_collectors=$(cat << COLLECTORS
buddyinfo
conntrack
cpu
cpufreq
diskstats
drbd
edac