How to run pushgateway from subfolder

59 views
Skip to first unread message

Rudi Rommels

unread,
Mar 5, 2021, 5:42:15 AM3/5/21
to Prometheus Users

Hey lovely prometheus crowd,
we are trying to run the pushgateway on a subfolder: e.g. /internal/metrics/pushgateway

With this setup the pushgateway gui is broken as it tries to load its assets from /static/* and not from the subfolder it is deployed in.
How is it possible to configure the push gateway to load the assets from
/internal/metrics/pushgateway/static/* to make the gui work.
Thanks,
Rudi

Bjoern Rabenstein

unread,
Mar 5, 2021, 8:43:55 AM3/5/21
to Rudi Rommels, Prometheus Users
Run it with a flag `--web.route-prefix=/internal/metrics/pushgateway`

--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email] bjo...@rabenste.in
Reply all
Reply to author
Forward
0 new messages