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

[HUDI-7391] HoodieMetadataMetrics should use Metrics instance for metrics registry #10635

Merged
merged 14 commits into from
Apr 11, 2024

Conversation

lokeshj1703
Copy link
Contributor

@lokeshj1703 lokeshj1703 commented Feb 7, 2024

Change Logs

Currently HoodieMetadataMetrics stores metrics in memory and these metrics are not pushed by the metric reporters. The metric reporters are configured within Metrics instance. List of changes in the PR:

  1. Metrics related classes have been moved from hudi-client-common to hudi-common.
  2. HoodieMetadataMetrics now uses Metrics class so that all the reporters can be supported with it.
  3. Some gaps in configs which are added in HoodieMetadataWriteUtils
  4. Some metrics related apis and functionality has been moved to HoodieMetricsConfig. The HoodieWriteConfig APIs now delegate to HoodieMetricsConfig for the functionality.

Impact

There are constructors and APIs which were using HoodieWriteConfig earlier. Now they are using HoodieMetricsConfig. HoodieMetricsConfig can be obtained by calling getMetricsConfig() from the HoodieWriteConfig object.

Risk level (write none, low medium or high below)

low

Documentation Update

There are constructors and APIs which were using HoodieWriteConfig earlier. Now they are using HoodieMetricsConfig. HoodieMetricsConfig can be obtained by calling getMetricsConfig() from the HoodieWriteConfig object.

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@nsivabalan
Copy link
Contributor

hey @prashantwason : can you review this patch please

@nsivabalan nsivabalan self-assigned this Feb 10, 2024
Copy link
Contributor

@nsivabalan nsivabalan left a comment

Choose a reason for hiding this comment

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

1 minor comment

@github-actions github-actions bot added the size:L PR with lines of changes in (300, 1000] label Feb 26, 2024
@@ -166,6 +169,17 @@ public void registerGauge(String metricName, final long value) {
}
}

public HoodieGauge<Long> registerGauge(String metricName) {
try {
Copy link
Contributor

Choose a reason for hiding this comment

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

why can't we call the other method here.

registerGauge(String metricName, 0L); 

Copy link
Contributor

Choose a reason for hiding this comment

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

lets address this minor comment and we are good to land

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed

@hudi-bot
Copy link

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@codope
Copy link
Member

codope commented Apr 11, 2024

@codope codope merged commit 2a0d2ae into apache:master Apr 11, 2024
39 of 40 checks passed
yihua pushed a commit that referenced this pull request May 14, 2024
…rics registry (#10635)

Currently HoodieMetadataMetrics stores metrics in memory and these metrics are not pushed by the metric reporters. The metric reporters are configured within Metrics instance. List of changes in the PR:

Metrics related classes have been moved from hudi-client-common to hudi-common.
HoodieMetadataMetrics now uses Metrics class so that all the reporters can be supported with it.
Some gaps in configs which are added in HoodieMetadataWriteUtils
Some metrics related apis and functionality has been moved to HoodieMetricsConfig. The HoodieWriteConfig APIs now delegate to HoodieMetricsConfig for the functionality.
yihua pushed a commit that referenced this pull request May 14, 2024
…rics registry (#10635)

Currently HoodieMetadataMetrics stores metrics in memory and these metrics are not pushed by the metric reporters. The metric reporters are configured within Metrics instance. List of changes in the PR:

Metrics related classes have been moved from hudi-client-common to hudi-common.
HoodieMetadataMetrics now uses Metrics class so that all the reporters can be supported with it.
Some gaps in configs which are added in HoodieMetadataWriteUtils
Some metrics related apis and functionality has been moved to HoodieMetricsConfig. The HoodieWriteConfig APIs now delegate to HoodieMetricsConfig for the functionality.
yihua pushed a commit that referenced this pull request May 15, 2024
…rics registry (#10635)

Currently HoodieMetadataMetrics stores metrics in memory and these metrics are not pushed by the metric reporters. The metric reporters are configured within Metrics instance. List of changes in the PR:

Metrics related classes have been moved from hudi-client-common to hudi-common.
HoodieMetadataMetrics now uses Metrics class so that all the reporters can be supported with it.
Some gaps in configs which are added in HoodieMetadataWriteUtils
Some metrics related apis and functionality has been moved to HoodieMetricsConfig. The HoodieWriteConfig APIs now delegate to HoodieMetricsConfig for the functionality.
yihua pushed a commit that referenced this pull request May 15, 2024
…rics registry (#10635)

Currently HoodieMetadataMetrics stores metrics in memory and these metrics are not pushed by the metric reporters. The metric reporters are configured within Metrics instance. List of changes in the PR:

Metrics related classes have been moved from hudi-client-common to hudi-common.
HoodieMetadataMetrics now uses Metrics class so that all the reporters can be supported with it.
Some gaps in configs which are added in HoodieMetadataWriteUtils
Some metrics related apis and functionality has been moved to HoodieMetricsConfig. The HoodieWriteConfig APIs now delegate to HoodieMetricsConfig for the functionality.
yihua pushed a commit that referenced this pull request May 15, 2024
…rics registry (#10635)

Currently HoodieMetadataMetrics stores metrics in memory and these metrics are not pushed by the metric reporters. The metric reporters are configured within Metrics instance. List of changes in the PR:

Metrics related classes have been moved from hudi-client-common to hudi-common.
HoodieMetadataMetrics now uses Metrics class so that all the reporters can be supported with it.
Some gaps in configs which are added in HoodieMetadataWriteUtils
Some metrics related apis and functionality has been moved to HoodieMetricsConfig. The HoodieWriteConfig APIs now delegate to HoodieMetricsConfig for the functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-0.15.0 size:L PR with lines of changes in (300, 1000]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants