grafana / pyroscope

Continuous Profiling Platform. Debug performance issues down to a single line of code
https://grafana.com/oss/pyroscope/
GNU Affero General Public License v3.0
9.98k stars 598 forks source link

UI does not function behind reverse proxy #3113

Open fsiler opened 6 months ago

fsiler commented 6 months ago

Describe the bug

I've toyed with different permutations of api.base-url and server.http_path_prefix. System will not function when prefixed at /pyroscope

To Reproduce

Steps to reproduce the behavior:

  1. Start Pyroscope (SHA or version)

1.4.0

  1. Perform Operations(Read/Write/Others)

Configure as follows:

server:
  http_listen_port: 4040
## FMS: these don't appear to work properly for reverse proxy use in 1.4.0
  http_path_prefix: /pyroscope
api:  
  base-url: /pyroscope

Expected behavior

Port-forward config, try to visit UI at /pyroscope. Does not work. Used both kubectl port-forward and HTTPProxy frontend, all broken.

Notably, I can visit /pyroscope/ready and it functions. Not sure about other API endpoints.

Environment

Additional Context

n/a

hazra-mms commented 6 months ago

I experience the same behaviour adding the base-url config during configuring from the Helm chart. I tried to use port-forward and the UI comes blank.