Skip to content

Commit 321df28

Browse files
committed
(SUP-2725) Fix system collection frequency
Prior to this commit, the postgres and vmware classes didn't correctly set the 'minute' parameter of the defined type for collecting metrics. It lacks the "0/" prefix, meaning for a default value of 5 we are performing the collections on the 5th minute, not repeating every 5 minutes. This commit adds the prefix.
1 parent aaee360 commit 321df28

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifests/system/postgres.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
metrics_command => $metrics_command,
3737
tidy_command => $tidy_command,
3838
metric_ensure => $metrics_ensure,
39-
minute => String($collection_frequency),
39+
minute => String("0/${collection_frequency}"),
4040
notify => Exec['puppet_metrics_collector_system_daemon_reload'],
4141
}
4242

manifests/system/vmware.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
metrics_command => $metrics_command,
4545
tidy_command => $tidy_command,
4646
metric_ensure => $metrics_ensure,
47-
minute => String($collection_frequency),
47+
minute => String("0/${collection_frequency}"),
4848
notify => Exec['puppet_metrics_collector_system_daemon_reload'],
4949
}
5050

0 commit comments

Comments
 (0)