prometheus / prometheus/alertmanager
Display relative times in the UI
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 8.6k
- Forks
- 2.5k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 61
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Alertmanager UI views for alerts and active silences, then inspect the current UTC timestamp formatting and Elm dependencies. Compare the proposed elm-date-distance and rluiten/elm-date-extra packages with the existing jweir/elm-iso8601 usage. Done means alerts show elapsed relative times and active silences show remaining durations without the old dependency.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elm
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100