BUG/MINOR: contrib/prometheus-exporter: Rename some metrics
The following metrics have been renamed without the "_http" part :
* http_queue_time_average_seconds => queue_time_average_seconds
* http_connect_time_average_seconds => connect_time_average_seconds
* http_response_time_average_seconds => response_time_average_seconds
* http_total_time_average_seconds => total_time_average_seconds
These metrics are reported per backend and per server and are not specific to
HTTP sessions.
(cherry picked from commit 68b6968ecd4e265526cbef28bdd8ba7c941ce7bf)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
diff --git a/contrib/prometheus-exporter/service-prometheus.c b/contrib/prometheus-exporter/service-prometheus.c
index 1991823..a657d11 100644
--- a/contrib/prometheus-exporter/service-prometheus.c
+++ b/contrib/prometheus-exporter/service-prometheus.c
@@ -556,10 +556,10 @@
[ST_F_LASTSESS] = IST("last_session_seconds"),
[ST_F_LAST_CHK] = IST("check_last_content"),
[ST_F_LAST_AGT] = IST("agentcheck_last_content"),
- [ST_F_QTIME] = IST("http_queue_time_average_seconds"),
- [ST_F_CTIME] = IST("http_connect_time_average_seconds"),
- [ST_F_RTIME] = IST("http_response_time_average_seconds"),
- [ST_F_TTIME] = IST("http_total_time_average_seconds"),
+ [ST_F_QTIME] = IST("queue_time_average_seconds"),
+ [ST_F_CTIME] = IST("connect_time_average_seconds"),
+ [ST_F_RTIME] = IST("response_time_average_seconds"),
+ [ST_F_TTIME] = IST("total_time_average_seconds"),
[ST_F_AGENT_STATUS] = IST("agentcheck_status"),
[ST_F_AGENT_CODE] = IST("agentcheck_code"),
[ST_F_AGENT_DURATION] = IST("agentcheck_duration_milliseconds"),