{"id":19285659,"url":"https://github.com/ifooth/bkmonitor-kits","last_synced_at":"2025-09-21T16:58:24.792Z","repository":{"id":146902563,"uuid":"389050769","full_name":"ifooth/bkmonitor-kits","owner":"ifooth","description":"蓝鲸监控 Golang 工具包","archived":false,"fork":false,"pushed_at":"2021-07-28T03:15:57.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-22T21:24:18.139Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"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/ifooth.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-24T09:04:16.000Z","updated_at":"2021-08-05T15:17:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"d436f723-1242-4a60-9d0c-66ea1ec19a8d","html_url":"https://github.com/ifooth/bkmonitor-kits","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ifooth/bkmonitor-kits","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifooth%2Fbkmonitor-kits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifooth%2Fbkmonitor-kits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifooth%2Fbkmonitor-kits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifooth%2Fbkmonitor-kits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ifooth","download_url":"https://codeload.github.com/ifooth/bkmonitor-kits/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifooth%2Fbkmonitor-kits/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276273622,"owners_count":25614217,"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-09-21T02:00:07.055Z","response_time":72,"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":[],"created_at":"2024-11-09T21:46:10.482Z","updated_at":"2025-09-21T16:58:24.760Z","avatar_url":"https://github.com/ifooth.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bkmonitor-kits\r\n\r\n\u003e 蓝鲸监控 Golang 工具包\r\n\r\n## 模块\r\n\r\n### logger\r\n\r\n日志库，封装了 go.uber.org/zap 和 lumberjack.v2 支持日志切割。\r\n\r\n```golang\r\npackage main\r\n\r\nimport \"github.com/TencentBlueKing/bkmonitor-kits/logger\"\r\n\r\n// 初始化日志库配置选项\r\nfunc InitLogger() {\r\n\tlogger.SetOptions(logger.Options{\r\n\t\tFilename:   \"/data/log/myproject/applog\",\r\n\t\tMaxSize:    1000, // 1GB\r\n\t\tMaxAge:     3,    // 3 days\r\n\t\tMaxBackups: 3,    // 3 backups\r\n\t})\r\n}\r\n\r\nfunc main() {\r\n\t// 生成环境的话可以试着自定义的日志配置 默认的输出流是标准输出\r\n\tInitLogger()\r\n\r\n\tlogger.Info(\"This is the info level message.\")\r\n\tlogger.Warnf(\"This is the warn level message. %s\", \"oop!\")\r\n\tlogger.Error(\"Something error here.\")\r\n}\r\n```\r\n\r\n### host\r\n\r\n监控主机标识。\r\n\r\n### register\r\n\r\nconsul 域名注册。\r\n\r\n### validator\r\n\r\n监控数据上报校验。\r\n\r\n## Contributing\r\n\r\n我们诚挚地邀请你参与共建蓝鲸开源社区，通过提 bug、提特性需求以及贡献代码等方式，一起让蓝鲸开源社区变得更好。\r\n\r\n![bkmonitor-kits](https://user-images.githubusercontent.com/19553554/126454082-d21b22f9-6df9-487f-82c1-a9dcd054f29a.png)\r\n\r\n\r\n## License\r\n\r\n基于 MIT 协议，详细请参考 [LICENSE](./LICENSE)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifooth%2Fbkmonitor-kits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fifooth%2Fbkmonitor-kits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifooth%2Fbkmonitor-kits/lists"}