{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/68533","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/68533/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/68533/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/68533/events","html_url":"https://github.com/kubernetes/kubernetes/issues/68533","id":359309197,"node_id":"MDU6SXNzdWUzNTkzMDkxOTc=","number":68533,"title":"apiserver does not offer command-line control over availability of Prometheus metrics and default in release 1.10 is \"unavailable\"","user":{"login":"MikeSpreitzer","id":14296719,"node_id":"MDQ6VXNlcjE0Mjk2NzE5","avatar_url":"https://avatars2.githubusercontent.com/u/14296719?v=4","gravatar_id":"","url":"https://api.github.com/users/MikeSpreitzer","html_url":"https://github.com/MikeSpreitzer","followers_url":"https://api.github.com/users/MikeSpreitzer/followers","following_url":"https://api.github.com/users/MikeSpreitzer/following{/other_user}","gists_url":"https://api.github.com/users/MikeSpreitzer/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeSpreitzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeSpreitzer/subscriptions","organizations_url":"https://api.github.com/users/MikeSpreitzer/orgs","repos_url":"https://api.github.com/users/MikeSpreitzer/repos","events_url":"https://api.github.com/users/MikeSpreitzer/events{/privacy}","received_events_url":"https://api.github.com/users/MikeSpreitzer/received_events","type":"User","site_admin":false},"labels":[{"id":267761362,"node_id":"MDU6TGFiZWwyNjc3NjEzNjI=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/feature","name":"kind/feature","color":"c7def8","default":false},{"id":617149945,"node_id":"MDU6TGFiZWw2MTcxNDk5NDU=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/needs-sig","name":"needs-sig","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-12T04:15:52Z","updated_at":"2018-09-12T06:06:42Z","closed_at":null,"author_association":"COLLABORATOR","body":"<!-- This form is for bug reports and feature requests ONLY!\r\n\r\nIf you're looking for help check [Stack Overflow](https://stackoverflow.com/questions/tagged/kubernetes) and the [troubleshooting guide](https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/).\r\n\r\nIf the matter is security related, please disclose it privately via https://kubernetes.io/security/.\r\n-->\r\n\r\n**Is this a BUG REPORT or FEATURE REQUEST?**:\r\n\r\n> Uncomment only one, leave it on its own line:\r\n>\r\n> /kind bug\r\n/kind feature\r\n\r\n\r\n**What happened**:\r\nI made an extension apiserver based on the example.  I tried to scrape its Prometheus metrics at `/metrics`, and was rewarded with a 404.  I looked for a command line flag to enable metrics, and found none.\r\n\r\n**What you expected to happen**:\r\nI expected to get the same sort of result I get from the regular kube apiserver.\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\nThis is easy to see by code inspection.  See how https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiserver/pkg/server/options/feature.go defines a flag for `profiling` that controls `o.EnableProfiling`, but there is no analogous control over `o.EnableMetrics`.  See also how https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiserver/pkg/server/config.go provides a default value of `true` for `EnableMetrics` but the release-1.10 edition does not.\r\n\r\n**Anything else we need to know?**:\r\n\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`):\r\n- Cloud provider or hardware configuration:\r\n- OS (e.g. from /etc/os-release):\r\n- Kernel (e.g. `uname -a`):\r\n- Install tools:\r\n- Others:\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/420523433","html_url":"https://github.com/kubernetes/kubernetes/issues/68533#issuecomment-420523433","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/68533","id":420523433,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDUyMzQzMw==","user":{"login":"shubheksha","id":7693422,"node_id":"MDQ6VXNlcjc2OTM0MjI=","avatar_url":"https://avatars3.githubusercontent.com/u/7693422?v=4","gravatar_id":"","url":"https://api.github.com/users/shubheksha","html_url":"https://github.com/shubheksha","followers_url":"https://api.github.com/users/shubheksha/followers","following_url":"https://api.github.com/users/shubheksha/following{/other_user}","gists_url":"https://api.github.com/users/shubheksha/gists{/gist_id}","starred_url":"https://api.github.com/users/shubheksha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubheksha/subscriptions","organizations_url":"https://api.github.com/users/shubheksha/orgs","repos_url":"https://api.github.com/users/shubheksha/repos","events_url":"https://api.github.com/users/shubheksha/events{/privacy}","received_events_url":"https://api.github.com/users/shubheksha/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T06:06:42Z","updated_at":"2018-09-12T06:06:42Z","author_association":"CONTRIBUTOR","body":"/kind bug\r\n/sig instrumentation"}}
{"actor":{"display_login":"shubheksha"}}