You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow specifying silence duration, not just end time #20
If I go to /silences and add a silence by entering "45h" in the "Ends At" textbox the textbox updates with a time - however when I hit "Create Silence" it silently fails to create the silence. Using the date picker works.
So keep in mind that this text box is meant to take a time/date in the format "15/12/2014 18:25:21" (which the date picker produces). If you just enter "45h", it will be unable to parse that and just set the field to the current time. And that means that the silence expires (and thus is not visible anymore) right after creating it.
Agreed, it would be cool to be able to specify a relative time in the future though.
Activity
juliusv commentedon Dec 15, 2014
So keep in mind that this text box is meant to take a time/date in the format "15/12/2014 18:25:21" (which the date picker produces). If you just enter "45h", it will be unable to parse that and just set the field to the current time. And that means that the silence expires (and thus is not visible anymore) right after creating it.
Agreed, it would be cool to be able to specify a relative time in the future though.
brian-brazil commentedon Dec 15, 2014
Ah, that's what happened. I'd assumed the time was that much from now.
juliusv commentedon Dec 15, 2014
You might have been tricked by the field's placeholder text saying "Ends At (default 1h from now)".
Fine to close this? Though I'd be open for PRs adding a nice way of specifying relative times :)
[-]Silence not created if you don't use date picker[/-][+]Allow specifying silence duration, not just end time[/+]brian-brazil commentedon Dec 15, 2014
Changed to a feature request so we don't forget
juliusv commentedon Dec 15, 2014
👍
mxinden commentedon Aug 13, 2017
@brian-brazil @juliusv This is now possible in the new UI. Please reopen if I am misunderstanding something.
Merge pull request prometheus#20 from pgier/makefile-promu-fix
dep: Manually upgrade golang.org/x/net (#3674) (#3811)
upgrade pkg nats-server to 2.7.2 (prometheus#20)