Skip to content

Commit

Permalink
Changed the metric names of rest consumer stats to be more Prometheus…
Browse files Browse the repository at this point in the history
… compliant.

Added more details to the description of each metric for the rest consumer stats.
  • Loading branch information
lwyic authored and GreenRover committed Dec 3, 2024
1 parent f67350d commit 32e1fcd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions semp/metricDesc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
}

0 comments on commit 32e1fcd

Please sign in to comment.