Skip to content

Commit dae2f72

Browse files
authored
Merge pull request #200 from Sharpie/SUP-4870-exclude-console-comidi-route-metrics
(SUP-4870) Exclude comidi-route-metrics from Console collection
2 parents 3831f65 + 502b305 commit dae2f72

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

functions/version_based_excludes.pp

+15-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,20 @@
66
function puppet_metrics_collector::version_based_excludes(
77
String[1] $metrics_type,
88
) >> Array[String] {
9-
if $metrics_type == 'puppetserver' {
10-
['file-sync-storage-service','pe-puppet-profiler','pe-master','pe-jruby-metrics']
11-
}
12-
else {
13-
$excludes = []
9+
case $metrics_type {
10+
'puppetserver': {
11+
# File Sync Storage includes a lot of detail that bloats file sizes.
12+
# The pe-* metrics are legacy representations that only duplicate data.
13+
['file-sync-storage-service','pe-puppet-profiler','pe-master','pe-jruby-metrics']
14+
}
15+
'console': {
16+
# PE Console has a lot of parameterized routes that can result in
17+
# hundreds of megabytes collected daily from the route metrics.
18+
# This data can be extracted from the console access log if needed.
19+
['comidi-route-metrics']
20+
}
21+
default: {
22+
[]
23+
}
1424
}
1525
}

0 commit comments

Comments
 (0)