{"id":15331243,"url":"https://github.com/janl/couchdb-couch-stats","last_synced_at":"2025-10-10T01:31:08.843Z","repository":{"id":65998349,"uuid":"45211275","full_name":"janl/couchdb-couch-stats","owner":"janl","description":"Mirror of Apache CouchDB","archived":false,"fork":true,"pushed_at":"2015-10-29T21:20:57.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-02T09:55:05.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"apache/couchdb-couch-stats","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janl.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":"2015-10-29T21:20:42.000Z","updated_at":"2015-10-29T21:20:42.000Z","dependencies_parsed_at":"2023-02-19T21:30:40.664Z","dependency_job_id":null,"html_url":"https://github.com/janl/couchdb-couch-stats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janl%2Fcouchdb-couch-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janl%2Fcouchdb-couch-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janl%2Fcouchdb-couch-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janl%2Fcouchdb-couch-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janl","download_url":"https://codeload.github.com/janl/couchdb-couch-stats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235892388,"owners_count":19061856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-01T09:55:06.248Z","updated_at":"2025-10-10T01:31:03.481Z","avatar_url":"https://github.com/janl.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# couch_stats\n\ncouch_stats is a simple statistics collection app for Erlang applications. Its\ncore API is a thin wrapper around a stat storage library (currently Folsom,) but\nabstracting over that library provides several benefits:\n\n* All references to stat storage are in one place, so it's easy to swap\n  the module out.\n\n* Some common patterns, such as tying a process's lifetime to a counter value,\n  are straightforward to support.\n\n* Configuration can be managed in a single place - for example, it's much easier\n  to ensure that all histogram metrics use a 10-second sliding window if those\n  metrics are instantiated/configured centrally.\n\n## Adding a metric\n\n1. Write a stat description file. See `priv/descriptions.cfg for an example.\n  * The metric name should be of type `[atom()]`.\n  * The type should be one of `counter`, `gauge`, or `histogram`.\n\n  If you don't add your metric to a description file, your metric will be\n  accessible via `couch_stats:sample/1`, but it won't be read by the stats\n  collector and therefore won't be available to HTTP `_stats` requests, etc.\n\n2. Tell couch_stats to use your description file via application configuration.\n\n2. Instrument your code with the helper functions in `couch_stats.erl`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanl%2Fcouchdb-couch-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanl%2Fcouchdb-couch-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanl%2Fcouchdb-couch-stats/lists"}