{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/20194","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/20194/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/20194/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/20194/events","html_url":"https://github.com/openshift/origin/issues/20194","id":337950260,"node_id":"MDU6SXNzdWUzMzc5NTAyNjA=","number":20194,"title":"apiserver with etcd metric and all values are \"0\"","user":{"login":"Reamer","id":454320,"node_id":"MDQ6VXNlcjQ1NDMyMA==","avatar_url":"https://avatars2.githubusercontent.com/u/454320?v=4","gravatar_id":"","url":"https://api.github.com/users/Reamer","html_url":"https://github.com/Reamer","followers_url":"https://api.github.com/users/Reamer/followers","following_url":"https://api.github.com/users/Reamer/following{/other_user}","gists_url":"https://api.github.com/users/Reamer/gists{/gist_id}","starred_url":"https://api.github.com/users/Reamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reamer/subscriptions","organizations_url":"https://api.github.com/users/Reamer/orgs","repos_url":"https://api.github.com/users/Reamer/repos","events_url":"https://api.github.com/users/Reamer/events{/privacy}","received_events_url":"https://api.github.com/users/Reamer/received_events","type":"User","site_admin":false},"labels":[{"id":683887368,"node_id":"MDU6TGFiZWw2ODM4ODczNjg=","url":"https://api.github.com/repos/openshift/origin/labels/sig/master","name":"sig/master","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":{"login":"mfojtik","id":44136,"node_id":"MDQ6VXNlcjQ0MTM2","avatar_url":"https://avatars2.githubusercontent.com/u/44136?v=4","gravatar_id":"","url":"https://api.github.com/users/mfojtik","html_url":"https://github.com/mfojtik","followers_url":"https://api.github.com/users/mfojtik/followers","following_url":"https://api.github.com/users/mfojtik/following{/other_user}","gists_url":"https://api.github.com/users/mfojtik/gists{/gist_id}","starred_url":"https://api.github.com/users/mfojtik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfojtik/subscriptions","organizations_url":"https://api.github.com/users/mfojtik/orgs","repos_url":"https://api.github.com/users/mfojtik/repos","events_url":"https://api.github.com/users/mfojtik/events{/privacy}","received_events_url":"https://api.github.com/users/mfojtik/received_events","type":"User","site_admin":false},"assignees":[{"login":"mfojtik","id":44136,"node_id":"MDQ6VXNlcjQ0MTM2","avatar_url":"https://avatars2.githubusercontent.com/u/44136?v=4","gravatar_id":"","url":"https://api.github.com/users/mfojtik","html_url":"https://github.com/mfojtik","followers_url":"https://api.github.com/users/mfojtik/followers","following_url":"https://api.github.com/users/mfojtik/following{/other_user}","gists_url":"https://api.github.com/users/mfojtik/gists{/gist_id}","starred_url":"https://api.github.com/users/mfojtik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfojtik/subscriptions","organizations_url":"https://api.github.com/users/mfojtik/orgs","repos_url":"https://api.github.com/users/mfojtik/repos","events_url":"https://api.github.com/users/mfojtik/events{/privacy}","received_events_url":"https://api.github.com/users/mfojtik/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2018-07-03T15:30:22Z","updated_at":"2018-10-30T14:43:08Z","closed_at":null,"author_association":"NONE","body":"Metric endpoint of apiserver/controller reports etcd metric and all values of etcd metrics are \"0\"\r\n\r\n##### Version\r\n```\r\noc v3.10.0+0c4577e-1\r\nkubernetes v1.10.0+b81c8f8\r\nfeatures: Basic-Auth GSSAPI Kerberos SPNEGO\r\n\r\nServer https://s-cp-lb-01.mycompany.com:443\r\nopenshift v3.10.0+7eee6f8-2\r\nkubernetes v1.10.0+b81c8f8\r\n```\r\n\r\n##### Steps To Reproduce\r\n1. Install Openshift 3.10\r\n2. curl apiserver metric endpoint with a valid Token\r\n```\r\n curl -k -H \"Authorization: Bearer XXXXX\"  https://[myapiserver]:[apiserver_port]/metrics | grep etcd\r\n```\r\n##### Current Result\r\n```\r\n...\r\n# HELP etcd_server_has_leader Whether or not a leader exists. 1 is existence, 0 is not.\r\n# TYPE etcd_server_has_leader gauge\r\netcd_server_has_leader 0\r\n# HELP etcd_server_leader_changes_seen_total The number of leader changes seen.\r\n# TYPE etcd_server_leader_changes_seen_total counter\r\netcd_server_leader_changes_seen_total 0\r\n# HELP etcd_server_proposals_applied_total The total number of consensus proposals applied.\r\n# TYPE etcd_server_proposals_applied_total gauge\r\netcd_server_proposals_applied_total 0\r\n# HELP etcd_server_proposals_committed_total The total number of consensus proposals committed.\r\n# TYPE etcd_server_proposals_committed_total gauge\r\netcd_server_proposals_committed_total 0\r\n...\r\n```\r\n\r\n##### Expected Result\r\nmetrics with values\r\n\r\n##### Additional Information\r\nI have a three node etcd cluster.\r\nDirect metric curl to a etcd node works as expected.\r\n```\r\ncurl -s --cacert \"/etc/origin/master/master.etcd-ca.crt\" --cert \"/etc/origin/master/master.etcd-client.crt\" --key \"/etc/origin/master/master.etcd-client.key\" https://etcd1.mycompany.com:2379/metrics\r\n```\r\n```\r\n...\r\n# HELP etcd_server_has_leader Whether or not a leader exists. 1 is existence, 0 is not.\r\n# TYPE etcd_server_has_leader gauge\r\netcd_server_has_leader 1\r\n# HELP etcd_server_leader_changes_seen_total The number of leader changes seen.\r\n# TYPE etcd_server_leader_changes_seen_total counter\r\netcd_server_leader_changes_seen_total 1\r\n# HELP etcd_server_proposals_applied_total The total number of consensus proposals applied.\r\n# TYPE etcd_server_proposals_applied_total gauge\r\netcd_server_proposals_applied_total 1.9855194e+07\r\n# HELP etcd_server_proposals_committed_total The total number of consensus proposals committed.\r\n# TYPE etcd_server_proposals_committed_total gauge\r\netcd_server_proposals_committed_total 1.9855194e+07\r\n...\r\n```\r\n\r\nMaybe this is an expected behavior, because i have no idea which etcd node metric should be reported from apiserver/controller."},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/434328854","html_url":"https://github.com/openshift/origin/issues/20194#issuecomment-434328854","issue_url":"https://api.github.com/repos/openshift/origin/issues/20194","id":434328854,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDMyODg1NA==","user":{"login":"Reamer","id":454320,"node_id":"MDQ6VXNlcjQ1NDMyMA==","avatar_url":"https://avatars2.githubusercontent.com/u/454320?v=4","gravatar_id":"","url":"https://api.github.com/users/Reamer","html_url":"https://github.com/Reamer","followers_url":"https://api.github.com/users/Reamer/followers","following_url":"https://api.github.com/users/Reamer/following{/other_user}","gists_url":"https://api.github.com/users/Reamer/gists{/gist_id}","starred_url":"https://api.github.com/users/Reamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reamer/subscriptions","organizations_url":"https://api.github.com/users/Reamer/orgs","repos_url":"https://api.github.com/users/Reamer/repos","events_url":"https://api.github.com/users/Reamer/events{/privacy}","received_events_url":"https://api.github.com/users/Reamer/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T14:43:08Z","updated_at":"2018-10-30T14:43:08Z","author_association":"NONE","body":"Still present in v3.11\r\n```\r\noc v3.11.0+62803d0-1\r\nkubernetes v1.11.0+d4cacc0\r\nfeatures: Basic-Auth GSSAPI Kerberos SPNEGO\r\n\r\nServer https://s-cp-lb-01.cloud.mycompany.com:443\r\nopenshift v3.11.0+84fe0ad-23\r\nkubernetes v1.11.0+d4cacc0\r\n```"}}
{"actor":{"display_login":"Reamer"}}