Skip to content

Conversation

@sumitagrawl
Copy link
Contributor

What changes were proposed in this pull request?

Event Queue metrics is not reported properly to prometheus, as classname is same for all reports. As HDDS metrics, annotation is used to identify metric name for prometheus, but if not present make use of classname.
As change,

  1. Updating annotation dynamically while registeration with name provided for EventQueue and then registering to metrics system

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-7464

How was this patch tested?

  1. Metrics are verified using prometheus endpoint

Event queue metrics reported:
FCR:
image

ICR:
image

Earlier, event_queue_** reports were not coming as prefix. Its coming directly with class name.

@sumitagrawl
Copy link
Contributor Author

@ChenSammi Plz review, now annotation is used for this to handle

@kerneltime kerneltime self-requested a review December 5, 2022 17:23
/**
* Metrics util for metrics.
*/
public final class MetricsUtil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of creating a new package, please move this class to org.apache.hadoop.hdds.utils package.

The rest looks good to me.

@sumitagrawl sumitagrawl requested review from ChenSammi and removed request for kerneltime December 6, 2022 05:52
@ChenSammi ChenSammi merged commit 565775c into apache:master Dec 7, 2022
Galsza pushed a commit to Galsza/ozone that referenced this pull request Dec 7, 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.

2 participants