{"action":"created","issue":{"url":"https://api.github.com/repos/helm/charts/issues/7088","repository_url":"https://api.github.com/repos/helm/charts","labels_url":"https://api.github.com/repos/helm/charts/issues/7088/labels{/name}","comments_url":"https://api.github.com/repos/helm/charts/issues/7088/comments","events_url":"https://api.github.com/repos/helm/charts/issues/7088/events","html_url":"https://github.com/helm/charts/issues/7088","id":348808944,"node_id":"MDU6SXNzdWUzNDg4MDg5NDQ=","number":7088,"title":"[stable/prometheus] prometheus /metrics endpoint results in 404 when server.baseURL and server.prefixURL are configured","user":{"login":"gajus","id":973543,"node_id":"MDQ6VXNlcjk3MzU0Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/973543?v=4","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-08T16:52:28Z","updated_at":"2018-08-08T17:02:45Z","closed_at":null,"author_association":"NONE","body":"**Version of Helm and Kubernetes**:\r\n\r\n```\r\ncuriosity~ % helm version\r\nClient: &version.Version{SemVer:\"v2.9.1\", GitCommit:\"20adb27c7c5868466912eebdf6664e7390ebe710\", GitTreeState:\"clean\"}\r\nServer: &version.Version{SemVer:\"v2.9.1\", GitCommit:\"20adb27c7c5868466912eebdf6664e7390ebe710\", GitTreeState:\"clean\"}\r\ncuriosity~ % kubectl version\r\nClient Version: version.Info{Major:\"1\", Minor:\"9\", GitVersion:\"v1.9.7\", GitCommit:\"dd5e1a2978fd0b97d9b78e1564398aeea7e7fe92\", GitTreeState:\"clean\", BuildDate:\"2018-04-19T00:05:56Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"10+\", GitVersion:\"v1.10.5-gke.3\", GitCommit:\"6265b9797fc8680c8395abeab12c1e3bad14069a\", GitTreeState:\"clean\", BuildDate:\"2018-07-19T23:02:51Z\", GoVersion:\"go1.9.3b4\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n\r\n**Which chart**:\r\n\r\nhttps://github.com/helm/charts/tree/master/stable/prometheus\r\n\r\n**What happened**:\r\n\r\nI have installed the prometheus chart using a custom `server.baseURL` and `server.prefixURL`. It appears that the underlying container is not passed all the relevant configuration. As a result, Prometheus is querying wrong endpoint.\r\n\r\n<img width=\"1920\" alt=\"screen shot 2018-08-08 at 17 47 31\" src=\"https://user-images.githubusercontent.com/973543/43851799-9b2523d6-9b33-11e8-8a9d-72fb28697351.png\">\r\n\r\n**What you expected to happen**:\r\n\r\nI expect Prometheus to query `/monitoring/prometheus/metrics` instead of `/metrics`.\r\n\r\n**How to reproduce it** (as minimally and precisely as possible):\r\n\r\nMy configuration:\r\n\r\n```yaml\r\nalertmanager:\r\n  persistentVolume:\r\n    size: '32Gi'\r\nserver:\r\n  baseURL: https://gajus.com/monitoring/prometheus/\r\n  prefixURL: /monitoring/prometheus\r\nstorage:\r\n  local:\r\n    retention: '720h'\r\n\r\n```\r\n\r\n**Anything else we need to know**:\r\n\r\nMy guess is that you need to configure `--web.route-prefix`. See https://github.com/prometheus/prometheus/issues/1583#issuecomment-395617142."},"comment":{"url":"https://api.github.com/repos/helm/charts/issues/comments/411479224","html_url":"https://github.com/helm/charts/issues/7088#issuecomment-411479224","issue_url":"https://api.github.com/repos/helm/charts/issues/7088","id":411479224,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTQ3OTIyNA==","user":{"login":"gajus","id":973543,"node_id":"MDQ6VXNlcjk3MzU0Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/973543?v=4","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T17:02:45Z","updated_at":"2018-08-08T17:02:45Z","author_association":"NONE","body":"> My guess is that you need to configure --web.route-prefix. See prometheus/prometheus#1583\r\n\r\nAdding `--web.route-prefix` does not fix the issue."}}
{"actor":{"display_login":"gajus"}}