When external_url is set, prometheus can't scrape itself
Bug #1636640 reported by
Casey Marshall
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Prometheus Charm |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
1. Reverse-proxy prometheus with URL rewriting, such that request URIs with /prometheus are routed to the prometheus charm. See the mojo-cdo-jujucharms deployment, for example.
2. juju set prometheus external_url=https:/
Browse to the prometheus status page, note that the prometheus target endpoint is DOWN. The charm needs to add the configured external_url path component to this target.
Related branches
~tasdomas/prometheus-charm:d01-external-url-fix
- Jacek Nykis (community): Approve
- Casey Marshall (community): Approve
- Matthew Williams (community): Approve
-
Diff: 59 lines (+12/-1)2 files modifiedreactive/prometheus.py (+10/-0)
templates/prometheus.yml.j2 (+2/-1)
To post a comment you must log in.
Fix landed in https:/ /jujucharms. com/prometheus/ 5