{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/heapster/issues/1174","repository_url":"https://api.github.com/repos/kubernetes/heapster","labels_url":"https://api.github.com/repos/kubernetes/heapster/issues/1174/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/heapster/issues/1174/comments","events_url":"https://api.github.com/repos/kubernetes/heapster/issues/1174/events","html_url":"https://github.com/kubernetes/heapster/issues/1174","id":156604035,"number":1174,"title":"Add Kubernetes object metrics","user":{"login":"titilambert","id":47721,"avatar_url":"https://avatars.githubusercontent.com/u/47721?v=3","gravatar_id":"","url":"https://api.github.com/users/titilambert","html_url":"https://github.com/titilambert","followers_url":"https://api.github.com/users/titilambert/followers","following_url":"https://api.github.com/users/titilambert/following{/other_user}","gists_url":"https://api.github.com/users/titilambert/gists{/gist_id}","starred_url":"https://api.github.com/users/titilambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titilambert/subscriptions","organizations_url":"https://api.github.com/users/titilambert/orgs","repos_url":"https://api.github.com/users/titilambert/repos","events_url":"https://api.github.com/users/titilambert/events{/privacy}","received_events_url":"https://api.github.com/users/titilambert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-24T20:41:20Z","updated_at":"2016-05-31T09:25:36Z","closed_at":null,"body":"Hello,\r\n\r\nI would like to get metrics from Kubernetes objects: Deployment, ReplicatSet, ReplicationController, DaemonSet, ...\r\nFor example, with ReplicatSets, we have 3 possibles metrics:\r\n * Desired pod number\r\n * Current pod number\r\n * Object Age (maybe this one is useless)\r\n```\r\nNAMESPACE     NAME                              DESIRED   CURRENT   AGE\r\nkube-system   heapster-1041324418               1         1         10d\r\nkube-system   influxdb-grafana-4280995660       1         1         10d\r\nkube-system   kube-dns-3506884991               1         1         10d\r\nkube-system   kubernetes-dashboard-650110457    0         0         8d\r\nkube-system   kubernetes-dashboard-740746746    0         0         7d\r\nkube-system   kubernetes-dashboard-922019324    6         6         6d\r\n```\r\n\r\nThe use case is to keep an history (in influxdb) of scaling for each object and graph it in Grafana.\r\nWe can also create alarm (with Kapacitor or other) if `Desired` and `Current` values stay unequal too long.\r\n\r\nWhat do you think to add a new subsource to Kubernetes  (like `summary_api`) to grab these metrics ?\r\nDo you see other metrics which could be grabbed ?"},"comment":{"url":"https://api.github.com/repos/kubernetes/heapster/issues/comments/222637001","html_url":"https://github.com/kubernetes/heapster/issues/1174#issuecomment-222637001","issue_url":"https://api.github.com/repos/kubernetes/heapster/issues/1174","id":222637001,"user":{"login":"piosz","id":10819974,"avatar_url":"https://avatars.githubusercontent.com/u/10819974?v=3","gravatar_id":"","url":"https://api.github.com/users/piosz","html_url":"https://github.com/piosz","followers_url":"https://api.github.com/users/piosz/followers","following_url":"https://api.github.com/users/piosz/following{/other_user}","gists_url":"https://api.github.com/users/piosz/gists{/gist_id}","starred_url":"https://api.github.com/users/piosz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piosz/subscriptions","organizations_url":"https://api.github.com/users/piosz/orgs","repos_url":"https://api.github.com/users/piosz/repos","events_url":"https://api.github.com/users/piosz/events{/privacy}","received_events_url":"https://api.github.com/users/piosz/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T09:25:36Z","updated_at":"2016-05-31T09:25:36Z","body":"cc @fgrzadkowski @jszczepkowski "}}
{"actor":{"display_login":"piosz"}}