alertmanager icon indicating copy to clipboard operation
alertmanager copied to clipboard

Display relative times in the UI

Open w0rm opened this issue 8 years ago • 7 comments

When alerts are hitting, we're probably interested in how many minutes/seconds ago it started, and not a UTC timestamp. The same goes for silences. E.g. for the active silences we're interested in for how long they remain active.

So far I could only find this library http://package.elm-lang.org/packages/alpacaaa/elm-date-distance/latest that implements this formatting. We also need to get rid of jweir/elm-iso8601 in favor of rluiten/elm-date-extra to keep our deps at a minimum.

w0rm avatar May 20 '17 18:05 w0rm

I want to add this comment by Jack (See google group) here:

Time stamps are in UTC. I prefer this frankly, but wish they where labeled as such. (I work across many timezones and there is only one true time.) But I imagine others have different opinions.

I am fine with either one. Any other opinions @stuartnelson3 @fabxc @brancz?

mxinden avatar May 22 '17 08:05 mxinden

I think I'd like the relative time in the UI, but the real UTC timestamp when I hover over it (as @jjneely mentioned it would be good to make clear that it is indeed UTC).

@jjneely what do you think about this?

brancz avatar May 22 '17 08:05 brancz

Yeah, we can show UTC timestamp in a tooltip https://v4-alpha.getbootstrap.com/components/tooltips/#static-demo

w0rm avatar May 22 '17 08:05 w0rm

I would prefer the duration. Assuming the duration calculation is correct, it saves me the trouble of doing the mental math to move from the reported UTC time to my current time.

stuartnelson3 avatar May 22 '17 11:05 stuartnelson3

@stuartnelson3 I believe you are talking about silences rather than alerts?

brancz avatar May 22 '17 12:05 brancz

Yeah, silences

stuartnelson3 avatar May 22 '17 12:05 stuartnelson3

Ping! Was this issue conclusion reached? I would prefer the duration, to avoid mental calculation that move timestamp from UTC to local timezone.

As other solution, I want to select the timezone (only in UI).

m-masataka avatar Oct 24 '19 16:10 m-masataka