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

Display Silence and Alert dates in ISO8601 format #2363

Merged

Conversation

nicholascapo
Copy link
Contributor

  • This changes the Alert view the SilenceList and SilenceView

@nicholascapo nicholascapo force-pushed the displays_use_iso_datetime_format branch 2 times, most recently from 18ee0b4 to b453648 Compare September 2, 2020 22:56
@nicholascapo nicholascapo force-pushed the displays_use_iso_datetime_format branch from b453648 to 56a7bc1 Compare September 14, 2020 21:49
@simonpasquier
Copy link
Member

I don't have strong preferences on date formatting for the UI but I'm not sure that switching to ISO8601 format is more useful than the current format.

@nicholascapo
Copy link
Contributor Author

My use case is actually comparing the dates in AM to the dates a lot of other tools (Grafana, PagerDuty, etc) that use the ISO format. If they all had the same structure, doing quick diffs in my head would be easier (e.g "How long before this page did the Silence expire?")

The change would also make these dates consistent with the format on the New Silence Page.

Personally I like the ISO format, but internal and external consistency is the goal here.

@simonpasquier
Copy link
Member

Thanks for the input Nicholas. I agree that reducing cognitive overhead is important. I'll let @roidelapluie and @w0rm chime in too...

@roidelapluie
Copy link
Member

We should keep that consistent with Prometheus.

@nicholascapo
Copy link
Contributor Author

See also: prometheus/prometheus#7884

@w0rm
Copy link
Member

w0rm commented Sep 30, 2020

We should keep that consistent with Prometheus.

I agree that we should keep it consistent! 👍 if we are going change this in Prometheus too.

@nicholascapo nicholascapo force-pushed the displays_use_iso_datetime_format branch from 56a7bc1 to 2d6711a Compare November 5, 2020 17:08
* This changes the Alert view the SilenceList and SilenceView

Signed-off-by: Nicholas Capo <[email protected]>
@nicholascapo nicholascapo force-pushed the displays_use_iso_datetime_format branch from 2d6711a to 51cf51a Compare December 2, 2020 19:49
@nicholascapo
Copy link
Contributor Author

Any word on this change? Can I get an approval?

@w0rm w0rm merged commit 193ebba into prometheus:master Dec 3, 2020
@w0rm
Copy link
Member

w0rm commented Dec 3, 2020

@nicholascapo sure, to make it more consistent with Prometheus 👍

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.

4 participants