{"action":"created","issue":{"url":"https://api.github.com/repos/DirectXMan12/k8s-prometheus-adapter/issues/118","repository_url":"https://api.github.com/repos/DirectXMan12/k8s-prometheus-adapter","labels_url":"https://api.github.com/repos/DirectXMan12/k8s-prometheus-adapter/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/DirectXMan12/k8s-prometheus-adapter/issues/118/comments","events_url":"https://api.github.com/repos/DirectXMan12/k8s-prometheus-adapter/issues/118/events","html_url":"https://github.com/DirectXMan12/k8s-prometheus-adapter/issues/118","id":368214147,"node_id":"MDU6SXNzdWUzNjgyMTQxNDc=","number":118,"title":"Resources list is empty at /apis/custom.metrics.k8s.io/v1beta1/","user":{"login":"kchuriumova","id":36014226,"node_id":"MDQ6VXNlcjM2MDE0MjI2","avatar_url":"https://avatars0.githubusercontent.com/u/36014226?v=4","gravatar_id":"","url":"https://api.github.com/users/kchuriumova","html_url":"https://github.com/kchuriumova","followers_url":"https://api.github.com/users/kchuriumova/followers","following_url":"https://api.github.com/users/kchuriumova/following{/other_user}","gists_url":"https://api.github.com/users/kchuriumova/gists{/gist_id}","starred_url":"https://api.github.com/users/kchuriumova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kchuriumova/subscriptions","organizations_url":"https://api.github.com/users/kchuriumova/orgs","repos_url":"https://api.github.com/users/kchuriumova/repos","events_url":"https://api.github.com/users/kchuriumova/events{/privacy}","received_events_url":"https://api.github.com/users/kchuriumova/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-09T13:36:21Z","updated_at":"2018-11-07T22:02:04Z","closed_at":"2018-11-07T22:02:04Z","author_association":"NONE","body":"Hi there!\r\nI have the following metrics in Prometheus:\r\n`http_requests_total{namespace!=\"\",pod!=\"\"}` ->\r\n`http_requests_total{endpoint=\"http\",instance=\"100.96.3.10:8080\",job=\"sample-app\",namespace=\"default\",pod=\"sample-app-74f4657c87-5s54g\",service=\"sample-app\"}`\r\n\r\nMy config is:\r\n```\r\napiVersion: v1\r\nkind: ConfigMap\r\nmetadata:\r\n  name: adapter-config\r\n  namespace: custom-metrics\r\ndata:\r\n  config.yaml: |\r\n    rules:\r\n    - seriesQuery: 'http_requests_total{namespace!=\"\",pod!=\"\"}'\r\n      resources:\r\n        overrides:\r\n          namespace: {resource: \"namespace\"}\r\n          pod: {resource: \"pod\"}\r\n      name:\r\n        matches: \"^(.*)_total\"\r\n        as: \"${1}_per_second\"\r\n      metricsQuery: 'http_requests_total{<<.LabelMatchers>>}'\r\n```\r\nWhen I check I get:\r\n```\r\nkubectl get --raw /apis/custom.metrics.k8s.io/v1beta1/ --v=6\r\n{\"kind\":\"APIResourceList\",\"apiVersion\":\"v1\",\"groupVersion\":\"custom.metrics.k8s.io/v1beta1\",\"resources\":[]}\r\n```\r\nWhat can be wrong? Now I'm just trying to make it work\r\nUse image `directxman12/k8s-prometheus-adapter-amd64`\r\nIs there way I can debug? Or which logs should I check?\r\n\r\nk8s version:\r\n```\r\nClient Version: version.Info{Major:\"1\", Minor:\"10\", GitVersion:\"v1.10.3\", GitCommit:\"2bba0127d85d5a46ab4b778548be28623b32d0b0\", GitTreeState:\"clean\", BuildDate:\"2018-05-21T09:17:39Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"10\", GitVersion:\"v1.10.3\", GitCommit:\"2bba0127d85d5a46ab4b778548be28623b32d0b0\", GitTreeState:\"clean\", BuildDate:\"2018-05-21T09:05:37Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```"},"comment":{"url":"https://api.github.com/repos/DirectXMan12/k8s-prometheus-adapter/issues/comments/436793877","html_url":"https://github.com/DirectXMan12/k8s-prometheus-adapter/issues/118#issuecomment-436793877","issue_url":"https://api.github.com/repos/DirectXMan12/k8s-prometheus-adapter/issues/118","id":436793877,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjc5Mzg3Nw==","user":{"login":"DirectXMan12","id":119737,"node_id":"MDQ6VXNlcjExOTczNw==","avatar_url":"https://avatars1.githubusercontent.com/u/119737?v=4","gravatar_id":"","url":"https://api.github.com/users/DirectXMan12","html_url":"https://github.com/DirectXMan12","followers_url":"https://api.github.com/users/DirectXMan12/followers","following_url":"https://api.github.com/users/DirectXMan12/following{/other_user}","gists_url":"https://api.github.com/users/DirectXMan12/gists{/gist_id}","starred_url":"https://api.github.com/users/DirectXMan12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DirectXMan12/subscriptions","organizations_url":"https://api.github.com/users/DirectXMan12/orgs","repos_url":"https://api.github.com/users/DirectXMan12/repos","events_url":"https://api.github.com/users/DirectXMan12/events{/privacy}","received_events_url":"https://api.github.com/users/DirectXMan12/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T22:02:04Z","updated_at":"2018-11-07T22:02:04Z","author_association":"OWNER","body":"Awesome, I'm going to close this issue then :-)"}}
{"actor":{"display_login":"DirectXMan12"}}