prometheus / prometheus/alertmanager

Display relative times in the UI

Open
#810 7 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component/ui kind/enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.