Skip to content

Added additional metrics to peer forwarder#1836

Merged
dlvenable merged 1 commit intoopensearch-project:mainfrom
asifsmohammed:metrics
Sep 30, 2022
Merged

Added additional metrics to peer forwarder#1836
dlvenable merged 1 commit intoopensearch-project:mainfrom
asifsmohammed:metrics

Conversation

@asifsmohammed
Copy link
Copy Markdown
Collaborator

@asifsmohammed asifsmohammed commented Sep 29, 2022

Signed-off-by: Asif Sohail Mohammed nsifmoh@amazon.com

Description

Added recordsSuccessfullyForwarded and requestsSuccessful metrics

Issues Resolved

resolves #1609

Check List

  • New functionality includes testing.
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Asif Sohail Mohammed <nsifmoh@amazon.com>
@asifsmohammed asifsmohammed requested a review from a team as a code owner September 29, 2022 16:37
verify(recordsActuallyProcessedLocallyCounter).increment(1.0);
verify(recordsToBeForwardedCounter).increment(1.0);
verify(requestsSuccessfulCounter).increment();
verify(recordsSuccessfullyForwardedCounter).increment(1.0);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It could be good to verify this with a value greater than 1 as well.

@dlvenable dlvenable merged commit d172bdf into opensearch-project:main Sep 30, 2022
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.

Add metrics for monitoring PeerForwarder

3 participants