2015-06-13 02:58:51 +03:00
|
|
|
# Prometheus Go client library
|
2012-05-20 01:59:25 +04:00
|
|
|
|
2015-06-13 02:58:51 +03:00
|
|
|
[![Build Status](https://travis-ci.org/prometheus/client_golang.svg?branch=master)](https://travis-ci.org/prometheus/client_golang) [![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)
|
2012-05-20 01:59:25 +04:00
|
|
|
|
2015-06-13 02:58:51 +03:00
|
|
|
This is the [Go](http://golang.org) client library for
|
2015-06-16 05:26:46 +03:00
|
|
|
[Prometheus](http://prometheus.io).
|
2012-05-20 01:59:25 +04:00
|
|
|
|
2015-06-13 02:58:51 +03:00
|
|
|
## Instrumenting applications
|
2013-03-28 13:44:20 +04:00
|
|
|
|
2015-06-13 02:58:51 +03:00
|
|
|
For instrumenting your Go application code with Prometheus metrics, see the
|
|
|
|
[documentation of the exposition client](https://godoc.org/github.com/prometheus/client_golang/prometheus).
|
|
|
|
|
|
|
|
## Consuming exported metrics
|
|
|
|
|
|
|
|
If you want to process metrics exported by a Prometheus client, see the
|
|
|
|
[consumption library documentation](https://godoc.org/github.com/prometheus/client_golang/extraction).
|
|
|
|
(The Prometheus server is using that library.)
|
2013-03-28 13:44:20 +04:00
|
|
|
|
2012-05-20 01:59:25 +04:00
|
|
|
# Testing
|
2013-02-18 08:09:21 +04:00
|
|
|
|
2015-06-13 02:58:51 +03:00
|
|
|
$ go test ./...
|
2014-04-25 14:50:18 +04:00
|
|
|
|
2015-06-13 02:58:51 +03:00
|
|
|
## Contributing and community
|
2014-04-25 14:50:18 +04:00
|
|
|
|
2015-06-13 02:58:51 +03:00
|
|
|
See the [contributing guidelines](CONTRIBUTING.md) and the
|
|
|
|
[Community section](http://prometheus.io/community/) of the homepage.
|