Skip to content

Commit

Permalink
Merge pull request #200 from Sharpie/SUP-4870-exclude-console-comidi-…
Browse files Browse the repository at this point in the history
…route-metrics

(SUP-4870) Exclude comidi-route-metrics from Console collection
  • Loading branch information
m0dular authored Apr 24, 2024
2 parents 3831f65 + 502b305 commit dae2f72
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions functions/version_based_excludes.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,20 @@
function puppet_metrics_collector::version_based_excludes(
String[1] $metrics_type,
) >> Array[String] {
if $metrics_type == 'puppetserver' {
['file-sync-storage-service','pe-puppet-profiler','pe-master','pe-jruby-metrics']
}
else {
$excludes = []
case $metrics_type {
'puppetserver': {
# File Sync Storage includes a lot of detail that bloats file sizes.
# The pe-* metrics are legacy representations that only duplicate data.
['file-sync-storage-service','pe-puppet-profiler','pe-master','pe-jruby-metrics']
}
'console': {
# PE Console has a lot of parameterized routes that can result in
# hundreds of megabytes collected daily from the route metrics.
# This data can be extracted from the console access log if needed.
['comidi-route-metrics']
}
default: {
[]
}
}
}

0 comments on commit dae2f72

Please sign in to comment.