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

Matching the Stale Period of PrometheusPushgatewayReporter accumulator to the one of PrometheusReporter accumulator #822

Merged
merged 1 commit into from
Mar 23, 2021
Merged

Matching the Stale Period of PrometheusPushgatewayReporter accumulator to the one of PrometheusReporter accumulator #822

merged 1 commit into from
Mar 23, 2021

Conversation

asutalo
Copy link

@asutalo asutalo commented Jul 31, 2020

Really not sure if this was intended behaviour or not but when PrometheusPushgatewayReporter is instantiated it creates an instance of PeriodSnapshot accumulator using the default Stale Period of 365 days (as opposed to PrometheusReporter which creates it with a period of 5 years). As a result when using the PGWReporter all of our metrics get cleaned as stale and are not sent out.

Note I haven't signed the CLA yet as I am not sure if this was intended behaviour or not.
Perhaps there's something I missed in the config that would resolve this issue?

…r to the one of PrometheusReporter accumulator
@florianmutter
Copy link

@ivantopo maybe? We would like to use kamon in our new project but are unable to to so if prometheus push does not work.

@florianmutter
Copy link

@SimunKaracic maybe? Anything we can to to get this in?

@SimunKaracic
Copy link
Contributor

I'm not sure why we were hesitant to merge this, it looks like a good, sensible change.

Thanks for the contribution and the patience :D

@SimunKaracic SimunKaracic merged commit 2616f0b into kamon-io:master Mar 23, 2021
@asutalo asutalo deleted the pgwreporter_accumulator_sync_to_promreporter branch June 19, 2021 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants