FS#64664 - [prometheus] web UI assets are missing

Attached to Project: Arch Linux
Opened by Peter Marheine (tari) - Wednesday, 27 November 2019, 10:00 GMT
Last edited by Johannes Löthberg (demize) - Sunday, 15 December 2019, 16:00 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jelle van der Waa (jelly)
Johannes Löthberg (demize)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

Details

The built-in prometheus server's web UI fails to find any of its assets because they're haven't been built. On loading the default view (/graph), it returns an error:

> error reading base template: open web/ui/templates/_base.html: no such file or directory

This should show the web UI for making queries instead of an error. Per the upstream documentation on building from source, binaries built with `go get` must be able to read the web assets from the working directory (and I assume this applies to `go build` as well, as done in the current PKGBUILD); `make build` should be used to compile the web assets into the binary for distribution.

Additional info:
* Package version 2.14.0-1
This task depends upon

Closed by  Johannes Löthberg (demize)
Sunday, 15 December 2019, 16:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.14.0-2
Comment by Geno (genofire) - Monday, 02 December 2019, 11:47 GMT
I could agree, i install the previous version from archive ;(
Comment by Nils Czernia (freaknils) - Monday, 09 December 2019, 10:16 GMT
Same here, previous version works fine.
Comment by Mathieu (MrBeardedMan) - Friday, 13 December 2019, 22:09 GMT
There is a new react UI. They added a couple of Makefile to build prometheus.
with `make build` it will package all templates inside the prometheus artifact.

Loading...