Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/ | H | 15-Jun-2019 | - | |||
api/ | H | 15-Jun-2019 | - | |||
examples/ | H | 15-Jun-2019 | - | |||
prometheus/ | H | 15-Jun-2019 | - | |||
.gitignore | H A D | 15-Jun-2019 | 326 | |||
.golangci.yml | H A D | 15-Jun-2019 | 134 | |||
.travis.yml | H A D | 15-Jun-2019 | 363 | |||
CHANGELOG.md | H A D | 15-Jun-2019 | 11.7 KiB | |||
CONTRIBUTING.md | H A D | 15-Jun-2019 | 950 | |||
Dockerfile | H A D | 15-Jun-2019 | 1,023 | |||
LICENSE | H A D | 15-Jun-2019 | 11.1 KiB | |||
MAINTAINERS.md | H A D | 15-Jun-2019 | 116 | |||
Makefile | H A D | 15-Jun-2019 | 1.1 KiB | |||
Makefile.common | H A D | 15-Jun-2019 | 8.9 KiB | |||
NOTICE | H A D | 15-Jun-2019 | 842 | |||
README.md | H A D | 15-Jun-2019 | 3.5 KiB | |||
VERSION | H A D | 15-Jun-2019 | 6 | |||
go.mod | H A D | 15-Jun-2019 | 535 | |||
go.sum | H A D | 15-Jun-2019 | 6.2 KiB |
README.md
1# Prometheus Go client library 2 3[![Build Status](https://travis-ci.org/prometheus/client_golang.svg?branch=master)](https://travis-ci.org/prometheus/client_golang) 4[![Go Report Card](https://goreportcard.com/badge/github.com/prometheus/client_golang)](https://goreportcard.com/report/github.com/prometheus/client_golang) 5[![go-doc](https://godoc.org/github.com/prometheus/client_golang?status.svg)](https://godoc.org/github.com/prometheus/client_golang) 6 7This is the [Go](http://golang.org) client library for 8[Prometheus](http://prometheus.io). It has two separate parts, one for 9instrumenting application code, and one for creating clients that talk to the 10Prometheus HTTP API. 11 12__This library requires Go1.9 or later.__ 13 14## Important note about releases and stability 15 16This repository generally follows [Semantic 17Versioning](https://semver.org/). However, the API client in 18prometheus/client_golang/api/… is still considered experimental. Breaking 19changes of the API client will _not_ trigger a new major release. The same is 20true for selected other new features explicitly marked as **EXPERIMENTAL** in 21CHANGELOG.md. 22 23Features that require breaking changes in the stable parts of the repository 24are being batched up and tracked in the [v2 25milestone](https://github.com/prometheus/client_golang/milestone/2). The v2 26development happens in a [separate 27branch](https://github.com/prometheus/client_golang/tree/dev-v2) for the time 28being. v2 releases off that branch will happen once sufficient stability is 29reached. In view of the widespread use of this repository, v1 and v2 will 30coexist for a while to enable a convenient transition. 31 32## Instrumenting applications 33 34[![code-coverage](http://gocover.io/_badge/github.com/prometheus/client_golang/prometheus)](http://gocover.io/github.com/prometheus/client_golang/prometheus) [![go-doc](https://godoc.org/github.com/prometheus/client_golang/prometheus?status.svg)](https://godoc.org/github.com/prometheus/client_golang/prometheus) 35 36The 37[`prometheus` directory](https://github.com/prometheus/client_golang/tree/master/prometheus) 38contains the instrumentation library. See the 39[guide](https://prometheus.io/docs/guides/go-application/) on the Prometheus 40website to learn more about instrumenting applications. 41 42The 43[`examples` directory](https://github.com/prometheus/client_golang/tree/master/examples) 44contains simple examples of instrumented code. 45 46## Client for the Prometheus HTTP API 47 48[![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-doc](https://godoc.org/github.com/prometheus/client_golang/api/prometheus?status.svg)](https://godoc.org/github.com/prometheus/client_golang/api) 49 50The 51[`api/prometheus` directory](https://github.com/prometheus/client_golang/tree/master/api/prometheus) 52contains the client for the 53[Prometheus HTTP API](http://prometheus.io/docs/querying/api/). It allows you 54to write Go applications that query time series data from a Prometheus 55server. It is still in alpha stage. 56 57## Where is `model`, `extraction`, and `text`? 58 59The `model` packages has been moved to 60[`prometheus/common/model`](https://github.com/prometheus/common/tree/master/model). 61 62The `extraction` and `text` packages are now contained in 63[`prometheus/common/expfmt`](https://github.com/prometheus/common/tree/master/expfmt). 64 65## Contributing and community 66 67See the [contributing guidelines](CONTRIBUTING.md) and the 68[Community section](http://prometheus.io/community/) of the homepage. 69