• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/H15-Jun-2019-

api/H15-Jun-2019-

examples/H15-Jun-2019-

prometheus/H15-Jun-2019-

.gitignoreH A D15-Jun-2019326

.golangci.ymlH A D15-Jun-2019134

.travis.ymlH A D15-Jun-2019363

CHANGELOG.mdH A D15-Jun-201911.7 KiB

CONTRIBUTING.mdH A D15-Jun-2019950

DockerfileH A D15-Jun-20191,023

LICENSEH A D15-Jun-201911.1 KiB

MAINTAINERS.mdH A D15-Jun-2019116

MakefileH A D15-Jun-20191.1 KiB

Makefile.commonH A D15-Jun-20198.9 KiB

NOTICEH A D15-Jun-2019842

README.mdH A D15-Jun-20193.5 KiB

VERSIONH A D15-Jun-20196

go.modH A D15-Jun-2019535

go.sumH A D15-Jun-20196.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