Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rest consumers stats #80

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

lwyic
Copy link
Contributor

@lwyic lwyic commented Nov 28, 2024

I'm adding "show message-vpn rest rest-consumer stats" to the exporter.

"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),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to rdp_http_post_response_received_bytes to be prometheus complient.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed the names of the metrics to be more Prometheus compliant. Please check if it is ok. I've push the changes to my branch already. Do I need to create another pull request? Sorry, I'm new here.

"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),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to rdp_http_post_request_sent_bytes to be prometheus complient.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed the names of the metrics to be more Prometheus compliant. Please check if it is ok. I've push the changes to my branch already. Do I need to create another pull request? Sorry, I'm new here.

@@ -477,4 +478,15 @@ var MetricDesc = map[string]Descriptions{
"connection_fast_retransmit": NewSemDesc("connection_fast_retransmit", NoSempV2Ready, "The number of TCP segments retransmitted due to the receipt of duplicate acknowledgments (‘ACKs’). See RFC 5681 for further details.", variableLabelsVpnClient),
"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),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Number of what kind of requests send to where?
Please be more specific, to make help text helpfull for non solace broker seniors.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've make the description more clear. Please check if it is ok. thanks.

… compliant.

Added more details to the description of each metric for the rest consumer stats.
@GreenRover GreenRover merged commit 32e1fcd into solacecommunity:master Dec 3, 2024
1 of 2 checks passed
@GreenRover
Copy link
Collaborator

Thank you for contributing.
I case you need a release i created:
https://github.com/solacecommunity/solace-prometheus-exporter/releases/tag/v1.8.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants