From 32e1fcd9227e6b23d32383caf1d142b6cbb6a9a0 Mon Sep 17 00:00:00 2001 From: Vincent Lam Date: Tue, 3 Dec 2024 14:54:24 +0800 Subject: [PATCH] Changed the metric names of rest consumer stats to be more Prometheus compliant. Added more details to the description of each metric for the rest consumer stats. --- semp/metricDesc.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/semp/metricDesc.go b/semp/metricDesc.go index 06d934b..e7abbb6 100644 --- a/semp/metricDesc.go +++ b/semp/metricDesc.go @@ -479,14 +479,14 @@ var MetricDesc = map[string]Descriptions{ "connection_timed_retransmit": NewSemDesc("connection_timed_retransmit", NoSempV2Ready, "The number of TCP segments re-transmitted due to timeout awaiting an ACK. See RFC 793 for further details.", variableLabelsVpnClient), }, "RestConsumerStats": { - "http_post_request_messages_sent": NewSemDesc("rdp_http_post_request_messages_sent", NoSempV2Ready, "The numer of request messages sent.", variableLabelsRestConsumer), - "http_post_request_messages_sent_outstanding": NewSemDesc("rdp_http_post_request_messages_sent_outstanding", NoSempV2Ready, "The numer of outstandning request messages to be sent.", variableLabelsRestConsumer), - "http_post_request_messages_sent_connection_closed": NewSemDesc("rdp_http_post_request_messages_sent_connection_closed", NoSempV2Ready, "The numer of connection closed while sending a message.", variableLabelsRestConsumer), - "http_post_request_messages_sent_timed_out": NewSemDesc("rdp_http_post_request_messages_sent_timed_out", NoSempV2Ready, "The numer of time-out encounted while sending a message.", variableLabelsRestConsumer), - "http_post_response_messages_received": NewSemDesc("rdp_http_post_response_messages_received", NoSempV2Ready, "The numer of response messages received.", variableLabelsRestConsumer), - "http_post_response_messages_received_successful": NewSemDesc("rdp_http_post_response_messages_received_successful", NoSempV2Ready, "The numer of response messages received successfully.", variableLabelsRestConsumer), - "http_post_response_messages_received_error": NewSemDesc("rdp_http_post_response_messages_received_error", NoSempV2Ready, "The numer of response messages received with errors", variableLabelsRestConsumer), - "http_post_request_bytes_sent": NewSemDesc("rdp_http_post_request_bytes_sent", NoSempV2Ready, "The request bytes sent.", variableLabelsRestConsumer), - "http_post_response_bytes_received": NewSemDesc("rdp_http_post_response_bytes_received", NoSempV2Ready, "The response bytes received.", variableLabelsRestConsumer), + "http_post_request_messages_sent": NewSemDesc("rdp_http_request_messages_sent_total", NoSempV2Ready, "The number of request messages sent by the REST Delivery Point (RDP) to the remote REST consumer.", variableLabelsRestConsumer), + "http_post_request_messages_sent_outstanding": NewSemDesc("rdp_http_request_messages_sent_outstanding_total", NoSempV2Ready, "The numer of outstandning request messages to be sent by the REST Delivery Point (RDP) to the remote REST consumer.", variableLabelsRestConsumer), + "http_post_request_messages_sent_connection_closed": NewSemDesc("rdp_http_request_messages_sent_connection_closed_total", NoSempV2Ready, "The numer of connection closed encountered while the REST Delivery Point (RDP) is sending a request message to the remote REST consumer.", variableLabelsRestConsumer), + "http_post_request_messages_sent_timed_out": NewSemDesc("rdp_http_request_messages_sent_timed_out_total", NoSempV2Ready, "The numer of time-out encounted while the REST Delivery Point (RDP) is sending a request message to the remote REST consumer.", variableLabelsRestConsumer), + "http_post_response_messages_received": NewSemDesc("rdp_http_response_messages_received_total", NoSempV2Ready, "The numer of response messages received from the REST consumer.", variableLabelsRestConsumer), + "http_post_response_messages_received_successful": NewSemDesc("rdp_http_response_messages_received_successful_total", NoSempV2Ready, "The numer of response messages received successfully from the REST consumer.", variableLabelsRestConsumer), + "http_post_response_messages_received_error": NewSemDesc("rdp_http_response_messages_received_error_total", NoSempV2Ready, "The numer of response messages received from the REST consumer with errors", variableLabelsRestConsumer), + "http_post_request_bytes_sent": NewSemDesc("rdp_http_request_sent_bytes_total", NoSempV2Ready, "The number of request bytes sent by the REST Delivery Point (RDP) to the remote REST consumer.", variableLabelsRestConsumer), + "http_post_response_bytes_received": NewSemDesc("rdp_http_response_received_bytes_total", NoSempV2Ready, "The number of response bytes received from the remote REST consumer", variableLabelsRestConsumer), }, }