{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/3888","labels_url":"https://api.github.com/repos/coreos/etcd/issues/3888/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/3888/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/3888/events","html_url":"https://github.com/coreos/etcd/issues/3888","id":117574108,"number":3888,"title":"Gauges about total key counters are always reporting 0","user":{"login":"crisidev","id":1781140,"avatar_url":"https://avatars.githubusercontent.com/u/1781140?v=3","gravatar_id":"","url":"https://api.github.com/users/crisidev","html_url":"https://github.com/crisidev","followers_url":"https://api.github.com/users/crisidev/followers","following_url":"https://api.github.com/users/crisidev/following{/other_user}","gists_url":"https://api.github.com/users/crisidev/gists{/gist_id}","starred_url":"https://api.github.com/users/crisidev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crisidev/subscriptions","organizations_url":"https://api.github.com/users/crisidev/orgs","repos_url":"https://api.github.com/users/crisidev/repos","events_url":"https://api.github.com/users/crisidev/events{/privacy}","received_events_url":"https://api.github.com/users/crisidev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-18T12:13:47Z","updated_at":"2015-11-18T17:30:21Z","closed_at":null,"body":"Hello, I am working on monitoring etcd using prometheus. I am currently using version 2.2.1, but all the gauge counters for key numbers are always returning 0. I have keys set by fleet and I have also tried to set keys manually, but the numbers are not changing.\r\n\r\nExample:\r\n```\r\n# HELP etcd_storage_keys_total Total number of keys.\r\n# TYPE etcd_storage_keys_total gauge\r\netcd_storage_keys_total 0\r\n# HELP etcd_storage_put_total Total number of puts seen by this member.\r\n# TYPE etcd_storage_put_total counter\r\netcd_storage_put_total 0\r\n# HELP etcd_storage_range_total Total number of ranges seen by this member.\r\n# TYPE etcd_storage_range_total counter\r\netcd_storage_range_total 0\r\n# HELP etcd_storage_txn_total Total number of txns seen by this member.\r\n# TYPE etcd_storage_txn_total counter\r\netcd_storage_txn_total 0\r\n# HELP etcd_store_expires_total Total number of expired keys.\r\n# TYPE etcd_store_expires_total counter\r\netcd_store_expires_total 468\r\n```\r\n\r\nThe only counter reporting is the expired one.\r\n\r\nAm I missing somenthing? From the code, I can see you are increasing these counters on put.\r\n"},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/157788716","html_url":"https://github.com/coreos/etcd/issues/3888#issuecomment-157788716","issue_url":"https://api.github.com/repos/coreos/etcd/issues/3888","id":157788716,"user":{"login":"barakmich","id":98356,"avatar_url":"https://avatars.githubusercontent.com/u/98356?v=3","gravatar_id":"","url":"https://api.github.com/users/barakmich","html_url":"https://github.com/barakmich","followers_url":"https://api.github.com/users/barakmich/followers","following_url":"https://api.github.com/users/barakmich/following{/other_user}","gists_url":"https://api.github.com/users/barakmich/gists{/gist_id}","starred_url":"https://api.github.com/users/barakmich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barakmich/subscriptions","organizations_url":"https://api.github.com/users/barakmich/orgs","repos_url":"https://api.github.com/users/barakmich/repos","events_url":"https://api.github.com/users/barakmich/events{/privacy}","received_events_url":"https://api.github.com/users/barakmich/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T17:30:21Z","updated_at":"2015-11-18T17:30:21Z","body":"Look; we have tons of users on v2 -- I'm sitting next to @crisidev right now -- and they care about, you know, backwards compatibility.\r\n\r\nv3 will be ready soon, sure, but it will be super useful for monitoring for current v2 users as they migrate  -- things like fleet, say. Adding them as tags (`{version=\"2\"}`) means they can be deprecated as time moves on.\r\n\r\nIt'd be good to do. If it needs to be a PR from someone else, eg, \"help wanted\" tag, fine."}}