File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ require "fileutils"
1717# sar_metric.pp will setup a cron job to run this similar to how pe_metric runs tk_metrics
1818#
1919# Example execution
20- # generate_system_metrics --metric_type system_cpu --file_interval 300 --polling_interval 1
21- # --metrics_dir <path to puppet-metrics-collector data>
20+ # system_metrics --metric_type system_cpu --file_interval 300 --polling_interval 1
21+ # --metrics_dir /opt/puppetlabs/ puppet-metrics-collector
2222# or
23- # generate_system_metrics --metric_type system_processes --file_interval 300 --polling_interval 1
24- # --process_expression <custom expression>
25- # --metrics_dir <path to puppet-metrics-collector data >
23+ # system_metrics --metric_type system_processes --file_interval 300 --polling_interval 1
24+ # --metrics_dir /opt/puppetlabs/puppet-metrics-collector
25+ # --process_expression <custom expression >
2626
2727# General namespace for SystemMetrics module
2828module SystemMetrics
@@ -163,7 +163,7 @@ module SystemMetrics
163163 processes_to_monitor = { }
164164 comm = "ps -eo pid,cmd | grep -E \' #{ @process_expression } \' "
165165 # we don't want to track PMC scripts or the grep command itself
166- comm += "| grep -vE 'puppet-metrics-collector|grep|generate_system_metrics '"
166+ comm += "| grep -vE 'puppet-metrics-collector|grep|system_metrics '"
167167 puts "process grep command is: #{ comm } " if @verbose
168168 begin
169169 process_info = %x[#{ comm } ]
You can’t perform that action at this time.
0 commit comments