{"id":37102437,"url":"https://github.com/ncdc/etcdstats","last_synced_at":"2026-01-14T12:24:54.788Z","repository":{"id":57588011,"uuid":"67244134","full_name":"ncdc/etcdstats","owner":"ncdc","description":"Display information about the etcd nodes consuming the most space","archived":true,"fork":false,"pushed_at":"2017-04-07T16:26:16.000Z","size":7,"stargazers_count":3,"open_issues_count":1,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-23T07:05:22.648Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ncdc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-02T18:01:34.000Z","updated_at":"2024-12-01T09:41:31.000Z","dependencies_parsed_at":"2022-09-26T19:42:41.942Z","dependency_job_id":null,"html_url":"https://github.com/ncdc/etcdstats","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ncdc/etcdstats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncdc%2Fetcdstats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncdc%2Fetcdstats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncdc%2Fetcdstats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncdc%2Fetcdstats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncdc","download_url":"https://codeload.github.com/ncdc/etcdstats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncdc%2Fetcdstats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T12:24:54.199Z","updated_at":"2026-01-14T12:24:54.735Z","avatar_url":"https://github.com/ncdc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# etcdstats\n\nConnect to a running etcd cluster and display the nodes that consume the largest amount of space by\nvalue.\n\n# Prerequisites\n\n```\n$ go get -u github.com/coreos/etcd/client\n```\n\n# Usage\n\n```\nUsage of etcdstats:\n  -alsologtostderr\n        log to standard error as well as files\n  -cacert string\n        CA certificate file (optional)\n  -cert string\n        client certificate file (optional)\n  -key string\n        client certificate key file (optional)\n  -log_backtrace_at value\n        when logging hits line file:N, emit a stack trace\n  -log_dir string\n        If non-empty, write log files in this directory\n  -logtostderr\n        log to standard error instead of files\n  -n int\n        display top n highest nodes (default 20)\n  -prefix string\n        directory prefix to summarize (default \"/\")\n  -server string\n        server url, e.g. https://127.0.0.1:2379 (required)\n  -stderrthreshold value\n        logs at or above this threshold go to stderr\n  -summarize value\n        summarize descendent nodes for the directory prefixed by this value instead of displaying these nodes; may specify multiple times for multiple directories\n  -v value\n        log level for V logs\n  -vmodule value\n        comma-separated list of pattern=N settings for file-filtered logging\n```\n\n# Example output\n\n```\n$ etcdstats -server https://127.0.0.1:4001 \\\n-cacert /var/lib/origin/openshift.local.config/master/ca.crt \\\n-cert /var/lib/origin/openshift.local.config/master/master.etcd-client.crt \\\n-key /var/lib/origin/openshift.local.config/master/master.etcd-client.key \\\n-n 20 \\\n-summarize /openshift.io/images \\\n-summarize /kubernetes.io/secrets\n\nTop 20 highest etcd nodes by value size (excluding summarized items):\nNODE                                                         CHILDREN  SIZE\n/openshift.io/images                                         26        1992791\n/kubernetes.io/secrets/openshift-infra                       60        395833\n/kubernetes.io/secrets/default                               16        103823\n/openshift.io/templates/openshift                            12        78802\n/kubernetes.io/secrets/kube-system                           9         57305\n/kubernetes.io/secrets/openshift                             9         57080\n/kubernetes.io/secrets/myproject                             9         56857\n/openshift.io/authorization/cluster/policies/default         N/A       47539\n/openshift.io/authorization/cluster/policies                 1         47539\n/openshift.io/imagestreams/openshift                         11        25326\n/kubernetes.io/controllers/default                           2         19905\n/kubernetes.io/events/default                                30        18622\n/openshift.io/authorization/cluster/policybindings/:default  N/A       16292\n/openshift.io/authorization/cluster/policybindings           1         16292\n/kubernetes.io/controllers/default/router-1                  N/A       15017\n/kubernetes.io/pods/default                                  2         11651\n/openshift.io/templates/openshift/jenkins-pipeline-example   N/A       10934\n/openshift.io/deploymentconfigs/default                      2         9219\n/kubernetes.io/serviceaccounts/openshift-infra               20        9145\n/openshift.io/templates/openshift/jenkins-persistent         N/A       8636\n\nTotal value size: 2943727\nValue size excluding summarized items 280038\n```\n\nNote, in the example, I asked it to summarize /kubernetes.io/secrets. The way summarization works,\nit excludes showing regular (non-directory) nodes under the prefix. It does not exclude showing\ndirectories under the prefix. This is why you see /kubernetes.io/secrets/openshift-infra - it is a\ndirectory. What you do not see are etcd nodes for the individual secrets.\n\n# License\netcdstats is licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncdc%2Fetcdstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncdc%2Fetcdstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncdc%2Fetcdstats/lists"}