[#8909] feat(lance): Add metric systems to lance server#8904
Merged
jerryshao merged 9 commits intoapache:branch-lance-namepspace-devfrom Oct 24, 2025
Merged
Conversation
mchades
reviewed
Oct 24, 2025
Contributor
There was a problem hiding this comment.
we should also add the metric annotation to the rest method
2a4d92d to
b755d28
Compare
jerryshao
approved these changes
Oct 24, 2025
67179e6
into
apache:branch-lance-namepspace-dev
26 checks passed
jerryshao
added a commit
to jerryshao/gravitino
that referenced
this pull request
Nov 11, 2025
…#8904) ### What changes were proposed in this pull request? 1. Added Lance REST server metrics constant (MetricsSource.java) 2. Added MapperConfig rule to transform Dropwizard metrics to Prometheus format 3. Integrated metrics collection in Lance REST service (LanceRESTService.java) 4. Enables automatic exposure of metrics at /metrics and /prometheus/metrics endpoints ### Why are the changes needed? Observability is needed for the new lance rest service. Fix: apache#8909 ### Does this PR introduce _any_ user-facing change? Yes - New metrics endpoints Standalone mode: - http://localhost:9101/metrics (Dropwizard JSON format) - http://localhost:9101/prometheus/metrics (Prometheus text format) Auxiliary mode: - Metrics exposed on all service ports (8090, 9001, 9101) showing unified metrics from all services ### How was this patch tested? Unit tests --------- Co-authored-by: Jerry Shao <jerryshao@datastrato.com>
youngyjd
added a commit
to youngyjd/gravitino
that referenced
this pull request
Nov 18, 2025
…#8904) ### What changes were proposed in this pull request? 1. Added Lance REST server metrics constant (MetricsSource.java) 2. Added MapperConfig rule to transform Dropwizard metrics to Prometheus format 3. Integrated metrics collection in Lance REST service (LanceRESTService.java) 4. Enables automatic exposure of metrics at /metrics and /prometheus/metrics endpoints ### Why are the changes needed? Observability is needed for the new lance rest service. Fix: apache#8909 ### Does this PR introduce _any_ user-facing change? Yes - New metrics endpoints Standalone mode: - http://localhost:9101/metrics (Dropwizard JSON format) - http://localhost:9101/prometheus/metrics (Prometheus text format) Auxiliary mode: - Metrics exposed on all service ports (8090, 9001, 9101) showing unified metrics from all services ### How was this patch tested? Unit tests --------- Co-authored-by: Jerry Shao <jerryshao@datastrato.com>
youngyjd
added a commit
to youngyjd/gravitino
that referenced
this pull request
Nov 19, 2025
…#8904) ### What changes were proposed in this pull request? 1. Added Lance REST server metrics constant (MetricsSource.java) 2. Added MapperConfig rule to transform Dropwizard metrics to Prometheus format 3. Integrated metrics collection in Lance REST service (LanceRESTService.java) 4. Enables automatic exposure of metrics at /metrics and /prometheus/metrics endpoints ### Why are the changes needed? Observability is needed for the new lance rest service. Fix: apache#8909 ### Does this PR introduce _any_ user-facing change? Yes - New metrics endpoints Standalone mode: - http://localhost:9101/metrics (Dropwizard JSON format) - http://localhost:9101/prometheus/metrics (Prometheus text format) Auxiliary mode: - Metrics exposed on all service ports (8090, 9001, 9101) showing unified metrics from all services ### How was this patch tested? Unit tests --------- Co-authored-by: Jerry Shao <jerryshao@datastrato.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Why are the changes needed?
Observability is needed for the new lance rest service.
Fix: #8909
Does this PR introduce any user-facing change?
Yes - New metrics endpoints
Standalone mode:
Auxiliary mode:
How was this patch tested?
Unit tests