You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanos, version 0.15.0 (branch: HEAD, revision: fbd14b4)
build user: root@d35b081d3e19
build date: 20200907-09:29:21
go version: go1.14.2
Object Storage Provider: GCS
What happened:
When thanos compact is run with --web.external-prefix=bucket-web, the NewBucketUI is not mounted on the supplied subpath, but the embedded hrefs and src links are correctly prefixed.
$ curl -s http://127.0.0.1:9090/bucket-web/global/ | head
404 page not found
$ curl -s http://127.0.0.1:9090/global/ | head
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex,nofollow">
<title>Thanos long term storage Prometheus solution</title>
<link rel="shortcut icon" href="/bucket-web/global/static/img/favicon.ico?v=fbd14b49f95e7543883fedf9381a21127d4dda2b">
<script src="/bucket-web/global/static/vendor/js/jquery-3.5.0.min.js?v=fbd14b49f95e7543883fedf9381a21127d4dda2b"></script>
<script src="/bucket-web/global/static/vendor/js/popper.min.js?v=fbd14b49f95e7543883fedf9381a21127d4dda2b"></script>
<script src="/bucket-web/global/static/vendor/bootstrap-4.1.3/js/bootstrap.min.js?v=fbd14b49f95e7543883fedf9381a21127d4dda2b"></script>
What you expected to happen:
When thanos compact is run with --web.external-prefix=bucket-web, the NewBucketUI is mounted on the supplied subpath and curl -s http://127.0.0.1:9090/bucket-web/global/ | head results in a successful bucket ui page request.
How to reproduce it (as minimally and precisely as possible):
run thanos compact with --http-address=127.0.0.1:9090 --wait --web.external-prefix=bucket-web
run curl -s http://127.0.0.1:9090/bucket-web/global/ and observe 404 error
Thanos, Prometheus and Golang version used:
thanos, version 0.15.0 (branch: HEAD, revision: fbd14b4)
build user: root@d35b081d3e19
build date: 20200907-09:29:21
go version: go1.14.2
Object Storage Provider: GCS
What happened:
When
thanos compact
is run with--web.external-prefix=bucket-web
, theNewBucketUI
is not mounted on the supplied subpath, but the embedded hrefs and src links are correctly prefixed.What you expected to happen:
When
thanos compact
is run with--web.external-prefix=bucket-web
, theNewBucketUI
is mounted on the supplied subpath andcurl -s http://127.0.0.1:9090/bucket-web/global/ | head
results in a successful bucket ui page request.How to reproduce it (as minimally and precisely as possible):
thanos compact
with--http-address=127.0.0.1:9090 --wait --web.external-prefix=bucket-web
curl -s http://127.0.0.1:9090/bucket-web/global/
and observe 404 errorAnything else we need to know:
https://github.com/thanos-io/thanos/blob/master/cmd/thanos/config.go#L152-L156
It appears that the cmd.Flags for "web.external-prefix" and "web.prefix-header" use the same var reference to
&wc.externalPrefix
.cmd.Flag(("web.prefix-header", "...").Default("").StringVar(&wc.externalPrefix)
should use theprefixHeaderName
var instead.The text was updated successfully, but these errors were encountered: