Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1214813

Bug#1083100: please bundle the more modern React UI

From Antoine Beaupre <anarcat@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1083100: please bundle the more modern React UI
Date 2024-10-01 18:00 +0200
Message-ID <JsNs5-geDs-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Package: prometheus
Severity: wishlist

Hi!

After reading through #1053243, I realized that Alertmanager is not
the only Prom thing that has a "modern" UI buried out of the Debian
package, but that Prometheus itself has a "React" UI available.

And now, checking on the unstable package, I see that the "classic" UI
has actually been completely removed from upstream. So far we're
bundling the classic UI in the package, but that's deemed to be
removed in the future.

Let's not do the alertmanager thing here, and somehow figure out how
to package this properly. I understand it's a gooey Javascript thing,
but we *do* have a bunch of Javascript things in Debian, and I think
it's a solveable problem. At least it doesn't look like it has Elm
compiler stuff?

According to:

https://github.com/prometheus/prometheus/tree/main/web/ui#pre-requisite

We need npm >= v7 (already in bookworm, even!) and nodejs >= 20 (in
trixie). I'm not *super* familiar with the javascript packaging, but
it *looks* like the package.json file is not completely hopeless:

https://github.com/prometheus/prometheus/blob/main/web/ui/package.json

... but of course, it hides the uglier part of it where you have react
and friends:

https://github.com/prometheus/prometheus/blob/main/web/ui/mantine-ui/package.json

... but we *do* have react and friends and debian now! So I think it
might be worth tackling that one and looking at what, exactly, we're
missing from Debian that we could add to make this work and keep
having a working web UI in Prometheus for the forseeable future.

Thanks!

-- System Information:
Debian Release: 12.7
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable'), (1, 'experimental'), (1, 'unstable'), (1, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.10.6+bpo-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages prometheus depends on:
ii  adduser                                  3.134
ii  fonts-glyphicons-halflings               1.009~3.4.1+dfsg-3
ii  init-system-helpers                      1.65.2
ii  libc6                                    2.36-9+deb12u8
ii  libjs-bootstrap4                         4.6.1+dfsg1-4
pn  libjs-eonasdan-bootstrap-datetimepicker  <none>
ii  libjs-jquery                             3.6.1+dfsg+~3.5.14-1
ii  libjs-jquery-hotkeys                     0~20130707+git2d51e3a9+dfsg-2.1
pn  libjs-moment                             <none>
pn  libjs-moment-timezone                    <none>
pn  libjs-mustache                           <none>
ii  libjs-popper.js                          1.16.1+ds-6
pn  libjs-rickshaw                           <none>

Versions of packages prometheus recommends:
pn  prometheus-node-exporter  <none>

prometheus suggests no packages.

Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1083100: please bundle the more modern React UI Antoine Beaupre <anarcat@debian.org> - 2024-10-01 18:00 +0200
  Bug#1083100: please bundle the more modern React UI Antoine Beaupré <anarcat@debian.org> - 2024-10-03 23:30 +0200
  Bug#1083100: please bundle the more modern React UI Antoine Beaupré <anarcat@debian.org> - 2024-10-04 00:30 +0200
  Bug#1083100: help needed on the Prometheus front Antoine Beaupré <anarcat@debian.org> - 2024-10-07 18:30 +0200
    Bug#1083100: help needed on the Prometheus front weepingclown <weepingclown@disroot.org> - 2024-10-07 19:00 +0200
    Bug#1083100: help needed on the Prometheus front Jérémy Lal <kapouer@melix.org> - 2024-10-07 19:10 +0200
      Bug#1083100: help needed on the Prometheus front Antoine Beaupré <anarcat@debian.org> - 2024-10-07 19:30 +0200
        Bug#1083100: help needed on the Prometheus front Jérémy Lal <kapouer@melix.org> - 2024-10-07 20:20 +0200

csiph-web