Skip to content

Commit 4656d8b

Browse files
authored
Merge pull request #688 from puppetlabs/P4DEVOPS-8567
Add DLQ, auto-purge, and health checks for Redis queues
2 parents 1a6b08a + 46e7701 commit 4656d8b

File tree

7 files changed

+1338
-14
lines changed

7 files changed

+1338
-14
lines changed

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ source ENV['GEM_SOURCE'] || 'https://rubygems.org'
33
gemspec
44

55
# Evaluate Gemfile.local if it exists
6-
if File.exists? "#{__FILE__}.local"
6+
if File.exist? "#{__FILE__}.local"
77
instance_eval(File.read("#{__FILE__}.local"))
88
end
99

1010
# Evaluate ~/.gemfile if it exists
11-
if File.exists?(File.join(Dir.home, '.gemfile'))
11+
if File.exist?(File.join(Dir.home, '.gemfile'))
1212
instance_eval(File.read(File.join(Dir.home, '.gemfile')))
1313
end

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ GEM
197197
PLATFORMS
198198
arm64-darwin-22
199199
arm64-darwin-23
200+
arm64-darwin-25
200201
universal-java-11
201202
universal-java-17
202203
x86_64-darwin-22

lib/vmpooler/metrics/promstats.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,30 @@ def vmpooler_metrics_table
329329
buckets: REDIS_CONNECT_BUCKETS,
330330
docstring: 'vmpooler redis connection wait time',
331331
param_labels: %i[type provider]
332+
},
333+
vmpooler_health: {
334+
mtype: M_GAUGE,
335+
torun: %i[manager],
336+
docstring: 'vmpooler health check metrics',
337+
param_labels: %i[metric_path]
338+
},
339+
vmpooler_purge: {
340+
mtype: M_GAUGE,
341+
torun: %i[manager],
342+
docstring: 'vmpooler purge metrics',
343+
param_labels: %i[metric_path]
344+
},
345+
vmpooler_destroy: {
346+
mtype: M_GAUGE,
347+
torun: %i[manager],
348+
docstring: 'vmpooler destroy metrics',
349+
param_labels: %i[poolname]
350+
},
351+
vmpooler_clone: {
352+
mtype: M_GAUGE,
353+
torun: %i[manager],
354+
docstring: 'vmpooler clone metrics',
355+
param_labels: %i[poolname]
332356
}
333357
}
334358
end

0 commit comments

Comments
 (0)