commit c55a626217a7e676e1cc ("MINOR: contrib/prometheus-exporter: Add
missing global and per-server metrics") is renaming two metrics:
  server_idle_connections_current
  server_idle_connections_limit

This patch to propose to backport this change in 2.2, 2.1. and 2.0 to
make it consitent accross versions. The main point being, it makes it
painful to integrate in some automated testing accross versions, which
make use of those metrics.

Signed-off-by: William Dauchy <wdau...@gmail.com>
---
 contrib/prometheus-exporter/service-prometheus.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/prometheus-exporter/service-prometheus.c 
b/contrib/prometheus-exporter/service-prometheus.c
index dd2a71d8d..094852465 100644
--- a/contrib/prometheus-exporter/service-prometheus.c
+++ b/contrib/prometheus-exporter/service-prometheus.c
@@ -600,8 +600,8 @@ const struct ist promex_st_metric_names[ST_F_TOTAL_FIELDS] 
= {
        [ST_F_REUSE]          = IST("connection_reuses_total"),
        [ST_F_CACHE_LOOKUPS]  = IST("http_cache_lookups_total"),
        [ST_F_CACHE_HITS]     = IST("http_cache_hits_total"),
-       [ST_F_SRV_ICUR]       = IST("server_idle_connections_current"),
-       [ST_F_SRV_ILIM]       = IST("server_idle_connections_limit"),
+       [ST_F_SRV_ICUR]       = IST("idle_connections_current"),
+       [ST_F_SRV_ILIM]       = IST("idle_connections_limit"),
        [ST_F_QT_MAX]         = IST("max_queue_time_seconds"),
        [ST_F_CT_MAX]         = IST("max_connect_time_seconds"),
        [ST_F_RT_MAX]         = IST("max_response_time_seconds"),
-- 
2.29.2


Reply via email to