{"action":"reopened","issue":{"url":"https://api.github.com/repos/kubernetes/kube-state-metrics/issues/161","repository_url":"https://api.github.com/repos/kubernetes/kube-state-metrics","labels_url":"https://api.github.com/repos/kubernetes/kube-state-metrics/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kube-state-metrics/issues/161/comments","events_url":"https://api.github.com/repos/kubernetes/kube-state-metrics/issues/161/events","html_url":"https://github.com/kubernetes/kube-state-metrics/issues/161","id":240370799,"number":161,"title":"Phase metrics are not following enumeration semantics.","user":{"login":"fabxc","id":4948210,"avatar_url":"https://avatars2.githubusercontent.com/u/4948210?v=4","gravatar_id":"","url":"https://api.github.com/users/fabxc","html_url":"https://github.com/fabxc","followers_url":"https://api.github.com/users/fabxc/followers","following_url":"https://api.github.com/users/fabxc/following{/other_user}","gists_url":"https://api.github.com/users/fabxc/gists{/gist_id}","starred_url":"https://api.github.com/users/fabxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabxc/subscriptions","organizations_url":"https://api.github.com/users/fabxc/orgs","repos_url":"https://api.github.com/users/fabxc/repos","events_url":"https://api.github.com/users/fabxc/events{/privacy}","received_events_url":"https://api.github.com/users/fabxc/received_events","type":"User","site_admin":false},"labels":[{"id":778118413,"url":"https://api.github.com/repos/kubernetes/kube-state-metrics/labels/lifecycle/rotten","name":"lifecycle/rotten","color":"604460","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-07-04T09:52:49Z","updated_at":"2018-04-17T09:51:02Z","closed_at":null,"author_association":"MEMBER","body":"For pod conditions we introduced enumerations (true, false, unknown). For each possible state, an object exposes a time series. The series for the condition the pod is currently is set to 1, the others to 0.\r\n\r\nNow we have new metrics like the pod phase, which broke with that pattern and just expose a single series by flipping the label value to whatever phase we are currently in.\r\nThis breaks various handy computations and is inconsistent in general.\r\n\r\nIn general, we should just add it back. What's making me hesitant still is the series blow up for a relatively small piece of information. Possible phases are: Pending, Running, Succeeded, Failed, Unknown.\r\n\r\n@brian-brazil "}}
{"actor":{"display_login":"brancz"}}