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

Allow configuration of metrics. #510

Open
fstab opened this issue Jun 28, 2022 · 1 comment
Open

Allow configuration of metrics. #510

fstab opened this issue Jun 28, 2022 · 1 comment

Comments

@fstab
Copy link

fstab commented Jun 28, 2022

Metrics require configuration. A good example is a timer metric, where users will want to configure the bucked boundaries of the underlying histogram. github.com/fstab/micrometer-config-example contains several examples of how to configure metrics in Micrometer.

In the Microprofile metrics call on 21 June 2022 there was consensus that the following three configuration approaches should be available in Microprofile:

  • Annotation-based configuration
  • Java API, e.g. using a builder pattern
  • Configuration file, e.g. a properties file. This allows operations to change configuration of a deployment without the need for code changes and a new releases.

For examples of how Micrometer does this, see github.com/fstab/micrometer-config-example.

@donbourne
Copy link

@fstab , could you please add (inline) the key points from the repos you point to, just so this issue can stand on its own without being affected by potential future changes in the referred to repos?

@donbourne donbourne modified the milestone: 5.0.0 Sep 6, 2022
@donbourne donbourne changed the title [Metrics 5.0] Allow configuration of metrics. Allow configuration of metrics. Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants