Skip to content

Commit 9494c0d

Browse files
committed
(maint) update comments to reflect script rename
1 parent 08ec6a1 commit 9494c0d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

files/system_metrics

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
2828
module 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}]

0 commit comments

Comments
 (0)