| commit | 05e84a645223ca342b48c974f5fa3dd51f24d810 | [log] [tgz] |
|---|---|---|
| author | beorn7 <[email protected]> | Tue Jun 11 23:46:41 2019 |
| committer | beorn7 <[email protected]> | Tue Jun 11 23:46:41 2019 |
| tree | 9a287c00cb594513d2bd8aca64f4375e7b26191c | |
| parent | f2e6ed57d699dad70db93d4678ba3930e4787fb7 [diff] | |
| parent | e7f6132a7689fdf8885f73975a6fb02909f82f0f [diff] |
Merge branch 'master' into dev-v2
This is the Go client library for Prometheus. It has two separate parts, one for instrumenting application code, and one for creating clients that talk to the Prometheus HTTP API.
This library requires Go1.9 or later.
In this repository, we used to mostly ignore the many coming and going dependency management tools for Go and instead wait for a tool that most of the community would converge on. Our bet is that this tool has arrived now in the form of Go Modules.
To make full use of what Go Modules are offering, the previous versioning roadmap for this repository had to be changed. In particular, Go Modules finally provide a way for incompatible versions of the same package to coexist in the same binary. For that, however, the versions must be tagged with different major versions of 1 or greater (following Semantic Versioning). Thus, we decided to abandon the original plan of introducing a lot of breaking changes before releasing v1 of this repository, mostly driven by the widespread use this repository already has and the relatively stable state it is in.
To leverage the mechanism Go Modules offers for a transition between major version, the current plan is the following:
The prometheus directory contains the instrumentation library. See the guide on the Prometheus website to learn more about instrumenting applications.
The examples directory contains simple examples of instrumented code.
The api/prometheus directory contains the client for the Prometheus HTTP API. It allows you to write Go applications that query time series data from a Prometheus server. It is still in alpha stage.
model, extraction, and text?The model packages has been moved to prometheus/common/model.
The extraction and text packages are now contained in prometheus/common/expfmt.
See the contributing guidelines and the Community section of the homepage.