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

Metrics module enhancements #121

Merged
merged 1 commit into from
Nov 16, 2020
Merged

Metrics module enhancements #121

merged 1 commit into from
Nov 16, 2020

Conversation

meltsufin
Copy link
Member

@meltsufin meltsufin commented Nov 13, 2020

  • 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")
Copy link
Contributor

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?

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
metrics type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants