-
Notifications
You must be signed in to change notification settings - Fork 336
Metrics module enhancements #121
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
Conversation
meltsufin
commented
Nov 13, 2020
•
edited
Loading
edited
- Updates metrics sample to fix documentation and make it easier to use
- Moves actuator starter into our metrics starter and updates corresponding section in refdoc
- Adds a link to the metrics sample in the refdoc
- Adds header provider to enable usage metrics for the module
@ConditionalOnBean(Clock.class) | ||
@ConditionalOnEnabledMetricsExport("stackdriver") | ||
@EnableConfigurationProperties({GcpMetricsProperties.class, StackdriverProperties.class}) | ||
@ConditionalOnProperty(value = "spring.cloud.gcp.metrics.enabled", matchIfMissing = true, havingValue = "true") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need both this and @ConditionalOnEnabledMetricsExport
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They use different properties to disable the module. One way is through actuator and one through our standard spring.cloud.gpc.metrics.enabled
.
2cb2425
to
807132f
Compare