Skip to content

Commit 7449f23

Browse files
committed
Add missing Prometheus metrics registration (vmpooler_performance, vmpooler_dlq, vmpooler_errors)
1 parent c9b0d7f commit 7449f23

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

lib/vmpooler/metrics/promstats.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,24 @@ def vmpooler_metrics_table
371371
torun: %i[manager],
372372
docstring: 'Adaptive timeout statistics',
373373
param_labels: %i[metric_path]
374+
},
375+
vmpooler_performance: {
376+
mtype: M_GAUGE,
377+
torun: %i[manager],
378+
docstring: 'vmpooler performance metrics for pool operations',
379+
param_labels: %i[metric_path]
380+
},
381+
vmpooler_dlq: {
382+
mtype: M_COUNTER,
383+
torun: %i[manager],
384+
docstring: 'vmpooler dead letter queue metrics',
385+
param_labels: %i[metric_path]
386+
},
387+
vmpooler_errors: {
388+
mtype: M_COUNTER,
389+
torun: %i[manager],
390+
docstring: 'vmpooler error counters including permanent failures',
391+
param_labels: %i[metric_path]
374392
}
375393
}
376394
end

0 commit comments

Comments
 (0)