{"id":26341357,"url":"https://github.com/cori1109/client_golang","last_synced_at":"2025-03-16T04:29:17.117Z","repository":{"id":65434696,"uuid":"586767374","full_name":"Cori1109/client_golang","owner":"Cori1109","description":"Cori instrumentation library for Go applications","archived":false,"fork":false,"pushed_at":"2023-03-01T05:00:10.000Z","size":2630,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-05T21:05:38.329Z","etag":null,"topics":["client","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cori1109.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2023-01-09T07:19:55.000Z","updated_at":"2023-02-15T07:40:45.000Z","dependencies_parsed_at":"2023-02-12T23:01:08.533Z","dependency_job_id":null,"html_url":"https://github.com/Cori1109/client_golang","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cori1109%2Fclient_golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cori1109%2Fclient_golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cori1109%2Fclient_golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cori1109%2Fclient_golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cori1109","download_url":"https://codeload.github.com/Cori1109/client_golang/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826799,"owners_count":20354220,"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":["client","go","golang"],"created_at":"2025-03-16T04:29:16.486Z","updated_at":"2025-03-16T04:29:17.103Z","avatar_url":"https://github.com/Cori1109.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prometheus Go client library\n\n[![CircleCI](https://circleci.com/gh/prometheus/client_golang/tree/main.svg?style=svg)](https://circleci.com/gh/prometheus/client_golang/tree/main)\n[![Go Report Card](https://goreportcard.com/badge/github.com/prometheus/client_golang)](https://goreportcard.com/report/github.com/prometheus/client_golang)\n[![Go Reference](https://pkg.go.dev/badge/github.com/prometheus/client_golang.svg)](https://pkg.go.dev/github.com/prometheus/client_golang)\n[![Slack](https://img.shields.io/badge/join%20slack-%23prometheus--client_golang-brightgreen.svg)](https://slack.cncf.io/)\n\nThis is the [Go](http://golang.org) client library for\n[Prometheus](http://prometheus.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__This library requires Go1.17 or later.__\n\n## Important note about releases and stability\n\nThis repository generally follows [Semantic\nVersioning](https://semver.org/). However, the API client in\nprometheus/client_golang/api/… 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://github.com/prometheus/client_golang/milestone/2). The v2\ndevelopment happens in a [separate\nbranch](https://github.com/prometheus/client_golang/tree/dev-v2) for the time\nbeing. v2 releases off that branch will happen once sufficient stability is\nreached. In view of the widespread use of this repository, v1 and v2 will\ncoexist for a while to enable a convenient transition.\n\n## Instrumenting applications\n\n[![code-coverage](http://gocover.io/_badge/github.com/prometheus/client_golang/prometheus)](http://gocover.io/github.com/prometheus/client_golang/prometheus) [![Go Reference](https://pkg.go.dev/badge/github.com/prometheus/client_golang/prometheus.svg)](https://pkg.go.dev/github.com/prometheus/client_golang/prometheus)\n\nThe\n[`prometheus` directory](https://github.com/prometheus/client_golang/tree/main/prometheus)\ncontains the instrumentation library. See the\n[guide](https://prometheus.io/docs/guides/go-application/) on the Prometheus\nwebsite to learn more about instrumenting applications.\n\nThe\n[`examples` directory](https://github.com/prometheus/client_golang/tree/main/examples)\ncontains simple examples of instrumented code.\n\n## Client for the Prometheus HTTP API\n\n[![code-coverage](http://gocover.io/_badge/github.com/prometheus/client_golang/api/prometheus/v1)](http://gocover.io/github.com/prometheus/client_golang/api/prometheus/v1) [![Go Reference](https://pkg.go.dev/badge/github.com/prometheus/client_golang/api.svg)](https://pkg.go.dev/github.com/prometheus/client_golang/api)\n\nThe\n[`api/prometheus` directory](https://github.com/prometheus/client_golang/tree/main/api/prometheus)\ncontains the client for the\n[Prometheus HTTP API](http://prometheus.io/docs/querying/api/). 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/common/model`](https://github.com/prometheus/common/tree/main/model).\n\nThe `extraction` and `text` packages are now contained in\n[`prometheus/common/expfmt`](https://github.com/prometheus/common/tree/main/expfmt).\n\n## Contributing and community\n\nSee the [contributing guidelines](CONTRIBUTING.md) and the\n[Community section](http://prometheus.io/community/) of the homepage.\n\n`clint_golang` community is also present on the CNCF Slack `#prometheus-client_golang`.\n\n### For Maintainers: Release Process\n\nTo cut a minor version:\n\n1. Create a new branch `release-\u003cmajor\u003e.\u003cminor\u003e` on top of the `main` commit you want to cut the version from and push it.\n2. Create a new branch on top of the release branch, e.g. `\u003cyourname\u003e/cut-\u003cmajor\u003e.\u003cminor\u003e.\u003cpatch\u003e`,\n3. Change the `VERSION` file.\n4. Update `CHANGELOG` (only user-impacting changes to mention).\n5. Create PR, and get it reviewed.\n6. Once merged, create a release with the `release-\u003cmajor\u003e.\u003cminor\u003e` tag on GitHub with the `\u003cversion\u003e / \u003cdate\u003e` title.\n7. Announce on the prometheus-announce mailing list, slack and Twitter.\n8. Merge the release branch back to the `main` using the \"merge without squashing\" approach (!).\n\n\u003e NOTE: In case of merge conflicts, you can checkout the release branch in a new branch, e.g. \u003cyourname\u003e/resolve-conflicts`, fix the merge problems there, and then do a PR into main from the new branch. In that way, you still get all the commits in the release branch back into `main`, but leave the release branch alone.\n\nTo cut the patch version:\n\n1. Create a branch on top of the release branch you want to use.\n2. Cherry-pick the fixes from the `main` branch (or add new commits) to fix critical bugs for that patch release.\n3. Follow steps 3-8 as above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcori1109%2Fclient_golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcori1109%2Fclient_golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcori1109%2Fclient_golang/lists"}