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

Use Prometheus format for durations #17

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

santihernandezc
Copy link

Our Receivers API is using the Go format for the lastAttemptDuration field. This goes against what Prometheus uses for other durations.
Excerpt from the docs:

<duration>: a duration matching the regular expression ((([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?|0), e.g. 1d, 1h30m, 5m, 10s

@santihernandezc santihernandezc merged commit 823cd91 into main Oct 12, 2022
@santihernandezc santihernandezc deleted the use_prometheus_format_for_durations branch October 12, 2022 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants