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

..03-May-2022-

.circleci/H07-Jun-2021-6968

.github/H07-Jun-2021-310

api/H07-Jun-2021-3,4612,890

examples/H07-Jun-2021-15690

prometheus/H07-Jun-2021-18,23412,440

.gitignoreH A D07-Jun-2021492 2821

.golangci.ymlH A D07-Jun-2021134 65

CHANGELOG.mdH A D07-Jun-202115.3 KiB314266

CODE_OF_CONDUCT.mdH A D07-Jun-2021155 42

CONTRIBUTING.mdH A D07-Jun-2021950 2115

DockerfileH A D07-Jun-20211 KiB2421

LICENSEH A D07-Jun-202111.1 KiB202169

MAINTAINERS.mdH A D07-Jun-2021100 32

MakefileH A D07-Jun-2021697 215

Makefile.commonH A D07-Jun-20219.8 KiB303225

NOTICEH A D07-Jun-2021842 2417

README.mdH A D07-Jun-20213.5 KiB6950

SECURITY.mdH A D07-Jun-2021170 74

VERSIONH A D07-Jun-20217 21

go.modH A D07-Jun-2021468 1714

go.sumH A D07-Jun-202114.4 KiB153152

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.13 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