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

feat: Add Metrics host for built in metrics #3519

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

surbhigarg92
Copy link
Contributor

@surbhigarg92 surbhigarg92 commented Nov 29, 2024

This PR allows users to set the custom monitoring host for built in metrics.

@surbhigarg92 surbhigarg92 requested a review from a team as a code owner November 29, 2024 10:54
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: spanner Issues related to the googleapis/java-spanner API. labels Nov 29, 2024
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Nov 29, 2024

@Override
public String getMetricsHost() {
return System.getenv(SPANNER_METRICS_HOST);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make sure it returns DEFAULT MONITORING HOST if metrics host is empty? otherwise it's a breaking change since you are always asking customer for monitoring host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/java-spanner API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants