[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-75762":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":9,"totalLinesOfCode":9,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":9,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":9,"createdAt":9,"pushedAt":9,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":27,"discoverSource":28},75762,"client_golang","prometheus\u002Fclient_golang","prometheus","Prometheus instrumentation library for Go applications",null,"https:\u002F\u002Fgithub.com\u002Fprometheus\u002Fclient_golang","Go",5982,1282,70,88,0,2,3,18,6,40.32,false,"main","2026-06-12 02:03:35","# Prometheus Go client library\n\n[![CI](https:\u002F\u002Fgithub.com\u002Fprometheus\u002Fclient_golang\u002Factions\u002Fworkflows\u002Fgo.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fprometheus\u002Fclient_golang\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Go Report Card](https:\u002F\u002Fgoreportcard.com\u002Fbadge\u002Fgithub.com\u002Fprometheus\u002Fclient_golang)](https:\u002F\u002Fgoreportcard.com\u002Freport\u002Fgithub.com\u002Fprometheus\u002Fclient_golang)\n[![Go Reference](https:\u002F\u002Fpkg.go.dev\u002Fbadge\u002Fgithub.com\u002Fprometheus\u002Fclient_golang.svg)](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fprometheus\u002Fclient_golang)\n[![OpenSSF Scorecard](https:\u002F\u002Fapi.securityscorecards.dev\u002Fprojects\u002Fgithub.com\u002Fprometheus\u002Fclient_golang\u002Fbadge)](https:\u002F\u002Fsecurityscorecards.dev\u002Fviewer\u002F?uri=github.com\u002Fprometheus\u002Fclient_golang)\n[![Slack](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fjoin%20slack-%23prometheus--client_golang-brightgreen.svg)](https:\u002F\u002Fslack.cncf.io\u002F)\n\nThis is the [Go](http:\u002F\u002Fgolang.org) client library for\n[Prometheus](http:\u002F\u002Fprometheus.io). It has two separate parts, one for\ninstrumenting application code, and one for creating clients that talk to the\nPrometheus HTTP API.\n\n## Version Compatibility\n\nThis library supports the two most recent major releases of Go. While it may function with older versions, we only provide fixes and support for the currently supported Go releases.\n\n> [!NOTE]\n> See our [Release Process](RELEASE.md#supported-go-versions) for details on compatibility and support policies.\n\n## Important note about releases and stability\n\nThis repository generally follows [Semantic\nVersioning](https:\u002F\u002Fsemver.org\u002F). However, the API client in\n`prometheus\u002Fclient_golang\u002Fapi\u002F…` is still considered experimental. Breaking\nchanges of the API client will _not_ trigger a new major release. The same is\ntrue for selected other new features explicitly marked as **EXPERIMENTAL** in\nCHANGELOG.md.\n\nFeatures that require breaking changes in the stable parts of the repository\nare being batched up and tracked in the [v2\nmilestone](https:\u002F\u002Fgithub.com\u002Fprometheus\u002Fclient_golang\u002Fmilestone\u002F2), but plans for further development of v2 at the moment.\n\n> NOTE: The initial v2 attempt is in a [separate branch](https:\u002F\u002Fgithub.com\u002Fprometheus\u002Fclient_golang\u002Ftree\u002Fdev-v2). We also started\nexperimenting on a new `prometheus.V2.*` APIs in [the 1.x's V2 struct](https:\u002F\u002Fgithub.com\u002Fprometheus\u002Fclient_golang\u002Fblob\u002Fmain\u002Fprometheus\u002Fvnext.go#L23). Help wanted!\n\n## Instrumenting applications\n\n[![Go Reference](https:\u002F\u002Fpkg.go.dev\u002Fbadge\u002Fgithub.com\u002Fprometheus\u002Fclient_golang\u002Fprometheus.svg)](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fprometheus\u002Fclient_golang\u002Fprometheus)\n\nThe\n[`prometheus` directory](https:\u002F\u002Fgithub.com\u002Fprometheus\u002Fclient_golang\u002Ftree\u002Fmain\u002Fprometheus)\ncontains the instrumentation library. See the\n[guide](https:\u002F\u002Fprometheus.io\u002Fdocs\u002Fguides\u002Fgo-application\u002F) on the Prometheus\nwebsite to learn more about instrumenting applications.\n\nThe\n[`examples` directory](https:\u002F\u002Fgithub.com\u002Fprometheus\u002Fclient_golang\u002Ftree\u002Fmain\u002Fexamples)\ncontains simple examples of instrumented code.\n\n## Client for the Prometheus HTTP API\n\n[![Go Reference](https:\u002F\u002Fpkg.go.dev\u002Fbadge\u002Fgithub.com\u002Fprometheus\u002Fclient_golang\u002Fapi.svg)](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fprometheus\u002Fclient_golang\u002Fapi)\n\nThe\n[`api\u002Fprometheus` directory](https:\u002F\u002Fgithub.com\u002Fprometheus\u002Fclient_golang\u002Ftree\u002Fmain\u002Fapi\u002Fprometheus)\ncontains the client for the\n[Prometheus HTTP API](http:\u002F\u002Fprometheus.io\u002Fdocs\u002Fquerying\u002Fapi\u002F). It allows you\nto write Go applications that query time series data from a Prometheus\nserver. It is still in alpha stage.\n\n## Where is `model`, `extraction`, and `text`?\n\nThe `model` packages has been moved to\n[`prometheus\u002Fcommon\u002Fmodel`](https:\u002F\u002Fgithub.com\u002Fprometheus\u002Fcommon\u002Ftree\u002Fmain\u002Fmodel).\n\nThe `extraction` and `text` packages are now contained in\n[`prometheus\u002Fcommon\u002Fexpfmt`](https:\u002F\u002Fgithub.com\u002Fprometheus\u002Fcommon\u002Ftree\u002Fmain\u002Fexpfmt).\n\n## Contributing and community\n\nSee the [contributing guidelines](CONTRIBUTING.md) and the\n[Community section](http:\u002F\u002Fprometheus.io\u002Fcommunity\u002F) of the homepage.\n\n`client_golang` community is also present on the CNCF Slack `#prometheus-client_golang`.\n","prometheus\u002Fclient_golang 是一个用于 Go 语言应用程序的 Prometheus 监控库。它提供了两部分主要功能：一部分是用于在应用代码中添加监控指标，另一部分则是创建与 Prometheus HTTP API 交互的客户端。该库支持最新的两个 Go 主要版本，并遵循语义化版本控制策略，以确保稳定性和兼容性。适用于需要集成 Prometheus 监控体系的 Go 应用场景，如微服务架构下的性能监测、日志记录等，能够帮助开发者更便捷地实现应用内部状态的可视化和问题排查。","2026-06-11 03:53:15","trending"]