From 7449f23547dab01acc1dd3a3bf8abd2cc4f2f7da Mon Sep 17 00:00:00 2001 From: Mahima Singh Date: Mon, 9 Mar 2026 15:21:32 +0530 Subject: [PATCH] Add missing Prometheus metrics registration (vmpooler_performance, vmpooler_dlq, vmpooler_errors) --- lib/vmpooler/metrics/promstats.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lib/vmpooler/metrics/promstats.rb b/lib/vmpooler/metrics/promstats.rb index 23ec64e..8d5b236 100644 --- a/lib/vmpooler/metrics/promstats.rb +++ b/lib/vmpooler/metrics/promstats.rb @@ -371,6 +371,24 @@ module Vmpooler torun: %i[manager], docstring: 'Adaptive timeout statistics', param_labels: %i[metric_path] + }, + vmpooler_performance: { + mtype: M_GAUGE, + torun: %i[manager], + docstring: 'vmpooler performance metrics for pool operations', + param_labels: %i[metric_path] + }, + vmpooler_dlq: { + mtype: M_COUNTER, + torun: %i[manager], + docstring: 'vmpooler dead letter queue metrics', + param_labels: %i[metric_path] + }, + vmpooler_errors: { + mtype: M_COUNTER, + torun: %i[manager], + docstring: 'vmpooler error counters including permanent failures', + param_labels: %i[metric_path] } } end