{"id":18750733,"url":"https://github.com/cafebazaar/epimetheus","last_synced_at":"2025-08-24T11:41:13.295Z","repository":{"id":141888330,"uuid":"226503761","full_name":"cafebazaar/epimetheus","owner":"cafebazaar","description":"Epimetheus is a lightweight wrpper around Prometheus Go client and Statsd Go client which makes measuring communication, functions, background jobs, etc. easier.","archived":false,"fork":false,"pushed_at":"2023-08-17T08:32:45.000Z","size":63,"stargazers_count":11,"open_issues_count":1,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-20T00:54:41.031Z","etag":null,"topics":["golang","monitoring","prometheus","statsd"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cafebazaar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-12-07T11:51:05.000Z","updated_at":"2024-02-14T11:26:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5928c5d-b3c7-4aad-a11f-c3a4e7e75fa1","html_url":"https://github.com/cafebazaar/epimetheus","commit_stats":{"total_commits":25,"total_committers":6,"mean_commits":4.166666666666667,"dds":0.4,"last_synced_commit":"b336fd85b45ed7a5eba843566158e70d16dd4c7e"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/cafebazaar/epimetheus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cafebazaar%2Fepimetheus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cafebazaar%2Fepimetheus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cafebazaar%2Fepimetheus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cafebazaar%2Fepimetheus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cafebazaar","download_url":"https://codeload.github.com/cafebazaar/epimetheus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cafebazaar%2Fepimetheus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271854475,"owners_count":24834453,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["golang","monitoring","prometheus","statsd"],"created_at":"2024-11-07T17:12:56.209Z","updated_at":"2025-08-24T11:41:13.210Z","avatar_url":"https://github.com/cafebazaar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Epimetheus\n![Mnemosyne](.github/logo.png?raw=true)\n\nEpimetheus is a lightweight wrpper around [Prometheus Go client](https://github.com/prometheus/client_golang) and [Statsd Go client](https://github.com/cactus/go-statsd-client) which makes measuring communication, functions, background jobs, etc. easier, simultaneously with both Prometheus and Statsd.\n\n## Getting Started\n\n### Installing\n\n```console\ngo get -u github.com/cafebazaar/epimetheus\n```\n\n### Initialize server\n\n```go\nepimetheusServer := epimetheus.NewEpimetheusServer(config)\ngo epimetheusServer.Listen()\n\n```\n\n### Predefined metrics\n\n```go\nepi := epimetheus.NewEpimetheus(config)\ncommTimer := epi.CommTimer\ngo epimetheusServer.Listen()\n```\n\n### Measuring duration and count\n```go\nepi := epimetheus.NewEpimetheus(config)\ntimerWithCounter := epi.NewTimerWithCounter(\"req1\", string[]{\"label1\"})\nrtc := timerWithCounter.Start()\n// Do some work here\nrtc.Done(\"dispatch\")\n```\n\n\n### Measuring duration\n```go\nepi := epimetheus.NewEpimetheus(config)\ntimer := epi.NewTimer(\"req1\", string[]{\"label1\"})\nt := timer.Start()\n// Do some work here\nt.Done(\"dispatch\")\n```\n\n### Measuring count\n```go\nepi := epimetheus.NewEpimetheus(config)\ncounter := epi.NewCounter(\"req1\", string[]{\"label1\"})\n// Do some work here\nc.Inc(\"dispatch\")\n```\n\n## Configuration\n\nEpimetheus uses Viper as it's config engine. Template should be something like this:\n```yaml\n    stats:\n      prometheus:\n        enabled: true\n        port: 1234\n      statsd:\n        enabled: true\n        port: 5678\n        host: \"w.x.y.z\"\n      namespace: search\n      system-name: octopus\n```\n\n## Documentation\n\nDocuments are available at [https://godoc.org/github.com/cafebazaar/epimetheus](https://godoc.org/github.com/cafebazaar/epimetheus)\n\n## Built With\n\n* [Prometheus Go clinet](https://github.com/prometheus/client_golang) - The underlying library for Prometheus\n* [Statsd Go client](https://github.com/cactus/go-statsd-client) - The underlying library for Statsd\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](https://github.com/cafebazaar/epimetheus/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/cafebazaar/epimetheus/tags). \n\n## Roadmap\n    - Improve documentation\n    - Add tests\n\n## Authors\n\n* **Ramtin Rostami** - *Initial work* - [rrostami](https://github.com/rrostami)\n* **Pedram Teymoori** - *Initial work* - [pedramteymoori](https://github.com/pedramteymoori)\n* **Parsa abdollahi** - *Initial work* - []()\n\nSee also the list of [contributors](https://github.com/cafebazaar/epimetheus/graphs/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n## Acknowledgments\n\n* [Sepehr nematollahi](https://www.behance.net/sseeppeehhrr) Epimetheus typography designer\n\nMade with \u003cspan class=\"heart\"\u003e❤\u003c/span\u003e in Cafebazaar search\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcafebazaar%2Fepimetheus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcafebazaar%2Fepimetheus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcafebazaar%2Fepimetheus/lists"}