{"id":17072069,"url":"https://github.com/singgel/lettuce-infra","last_synced_at":"2025-05-07T12:41:19.343Z","repository":{"id":105209765,"uuid":"257456864","full_name":"singgel/lettuce-infra","owner":"singgel","description":"【雪球-Infra】- 用lettuce的官方接口，目前对metric的采集组件化的形式都是采用的eventBus的形式，同时将视图刷新、连接数变化之类的记录下来，这些都是排查问题的利器","archived":false,"fork":false,"pushed_at":"2024-12-02T20:04:07.000Z","size":31,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T10:04:46.385Z","etag":null,"topics":["lettuce","logging","metrics","redis","tracing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/singgel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-21T02:15:21.000Z","updated_at":"2023-08-14T08:17:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"f074b808-73ee-4a0d-853b-61adcb9c4372","html_url":"https://github.com/singgel/lettuce-infra","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/singgel%2Flettuce-infra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singgel%2Flettuce-infra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singgel%2Flettuce-infra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singgel%2Flettuce-infra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/singgel","download_url":"https://codeload.github.com/singgel/lettuce-infra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252879452,"owners_count":21818799,"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":["lettuce","logging","metrics","redis","tracing"],"created_at":"2024-10-14T11:38:30.062Z","updated_at":"2025-05-07T12:41:19.333Z","avatar_url":"https://github.com/singgel.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lettuce-infra\nmetric tracing log\n\n介绍：https://blog.csdn.net/singgel/article/details/105652746\n\n问题：\n线上的redis日志不是很全面，例如：\n\n1.无法得知数据返回的remote address\n\n2.没有主动记录slowlog慢查询日志\n\n3.没有记录connection连接状态\n\n4.没有集群的网络拓扑\n\n分析：\n按照官方提供的EventBus总线，异步事件流提供了metric指标信息\n\nhttps://github.com/lettuce-io/lettuce-core/wiki/Connection-Events\n\n根据官方的Collector事件采集，提供了address之类相关信息\n\nhttps://github.com/lettuce-io/lettuce-core/wiki/Command-Latency-Metrics\n\n解决：\n根据以上相关帮助文档，采用适配器模式方便Event扩展，采用工厂模式将EventBus添加进消费序列\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinggel%2Flettuce-infra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinggel%2Flettuce-infra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinggel%2Flettuce-infra/lists"}