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

amtool - Allow 'd', 'w', 'y' to be specified at time suffix when creating silence #1091

Merged
merged 1 commit into from
Nov 11, 2017

Conversation

lebinh
Copy link
Contributor

@lebinh lebinh commented Nov 10, 2017

The time.ParseDuration function refused to parse them with the reason is that a day
can be shorter or longer than 24 hours. But they are already accepted in
Prometheus range query
and a custom parser is included in Prometheus
common package so there's no reason amtool cannot use that.

This will be handy in cases you need to create silence for longer periods,
which are unfortunately common.

The time.ParseDuration refused to parse them with the reason that a day
can be shorter or longer than 24 hours. But they are already accepted in
Prometheus range query and a custom parser is included in Prometheus
common package so there's no reason amtool cannot use that.

This will be handy in cases you need to create silence for longer periods,
which are unfortunately common.
@lebinh lebinh changed the title Allow 'd', 'w', 'y' to be specified at time suffix when creating silence amtool - Allow 'd', 'w', 'y' to be specified at time suffix when creating silence Nov 10, 2017
Copy link
Contributor

@stuartnelson3 stuartnelson3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@stuartnelson3 stuartnelson3 merged commit ea9a584 into prometheus:master Nov 11, 2017
hh pushed a commit to ii/alertmanager that referenced this pull request Sep 30, 2018
Signed-off-by: Fabian Heymann <fabian.heymann@finanzcheck.de>
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.

2 participants