pingcap / tidb-dashboard

A Web UI for monitoring, diagnosing and managing the TiDB cluster.
https://docs.pingcap.com/tidb/stable/dashboard-intro
Apache License 2.0
173 stars 126 forks source link

`--path-prefix` not working as expected #1692

Open mornyx opened 2 weeks ago

mornyx commented 2 weeks ago

Bug Report

What did you do?

  1. Build tidb-dashboard binary.
SKIP_GEN_API=1 make package
  1. Run TiDB cluster.
tiup playground
  1. Run standalone tidb-dashboard with --path-prefix.
./bin/tidb-dashboard --debug --experimental --feature-version 999.999.999 --host 0.0.0.0 --path-prefix=/test
  1. Access http://localhost:12333/test

What did you expect to see?

TiDB dashboard login page serve on http://localhost:12333/test.

What did you see instead?

Jump back to http://localhost:12333/dashboard and load the page forever.

image

What version of TiDB Dashboard are you using (./tidb-dashboard --version)?

master branch