** Attachment added: "web developer screenshot showing the resources failing to 
load"
   
https://bugs.launchpad.net/ubuntu/+source/prometheus-pushgateway/+bug/1933714/+attachment/5507189/+files/Bildschirmfoto%20vom%202021-06-26%2010-29-47.png

** Description changed:

  This refers to prometheus-pushgateway 1.4.0+ds-1 and seems to be an
  issue specifically with dpkg package and not an upstream issue.
  
- After installation accession http://localhost:9091 renders a garbled
+ After installation accessing http://localhost:9091 renders a garbled
  page. Using web developer it's obvious that some resources don't exist
  in `/usr/share/prometheus/pushgateway/static`, see screenshot attached.
  
  Specifically 2 things are wrong:
  
  1) `/usr/share/prometheus/pushgateway/static/bootstrap4` is there, but
  it's referred as `bootstrap-4` (note the dash). I've worked around this
  by:
  
  ```
  cd /usr/share/prometheus/pushgateway/static
  ln -s ../../../javascript/bootstrap4 bootstrap-4
  ```
  
  2) `/usr/share/prometheus/pushgateway/static/jquery.min.js` is missing.
  Workaround:
  
  ```
  cd /usr/share/prometheus/pushgateway/static
  ln -s jquery/jquery.min.js jquery.min.js
  ```

** Description changed:

  This refers to prometheus-pushgateway 1.4.0+ds-1 and seems to be an
  issue specifically with dpkg package and not an upstream issue.
  
  After installation accessing http://localhost:9091 renders a garbled
  page. Using web developer it's obvious that some resources don't exist
  in `/usr/share/prometheus/pushgateway/static`, see screenshot attached.
  
  Specifically 2 things are wrong:
  
  1) `/usr/share/prometheus/pushgateway/static/bootstrap4` is there, but
  it's referred as `bootstrap-4` (note the dash). I've worked around this
  by:
  
  ```
  cd /usr/share/prometheus/pushgateway/static
  ln -s ../../../javascript/bootstrap4 bootstrap-4
  ```
  
  2) `/usr/share/prometheus/pushgateway/static/jquery.min.js` is missing.
  Workaround:
  
  ```
  cd /usr/share/prometheus/pushgateway/static
  ln -s jquery/jquery.min.js jquery.min.js
  ```
+ 
+ With these changes everything works fine. Maybe the better approach
+ would be to change the references in
+ `/usr/share/prometheus/pushgateway/template.html` to the existing
+ locations.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1933714

Title:
  webfrontend does not render correctly due to wrong paths

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/prometheus-pushgateway/+bug/1933714/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to