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

Make a flag for the initial delay for PushMeterRegistry #3053

Closed
igr opened this issue Mar 4, 2022 · 1 comment
Closed

Make a flag for the initial delay for PushMeterRegistry #3053

igr opened this issue Mar 4, 2022 · 1 comment
Labels
duplicate A duplicate of another issue

Comments

@igr
Copy link

igr commented Mar 4, 2022

Please describe the feature request.
As seen here: https://github.com/micrometer-metrics/micrometer/blob/main/micrometer-core/src/main/java/io/micrometer/core/instrument/push/PushMeterRegistry.java#L76

we calculate the initial delay in order to trigger the tasks on the exact mark. For example, if delay is 10s, this means that that scheduled push happens on 10s mark, eg: 1:22:00, 1:22:10, 1:22:20...

We need this feature to be optional.

Rationale
If you have metrics on many places in a microservice application, imagine what happens when pushes from all services are triggered at the same time. It makes sense to randomize the initial delay in order to spread the load over time.

Additional context
N/A

@shakuzen
Copy link
Member

Duplicate of #2818

@shakuzen shakuzen marked this as a duplicate of #2818 Mar 22, 2022
@shakuzen shakuzen added the duplicate A duplicate of another issue label Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate A duplicate of another issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants