Prometheus instrumentation library for Go applications
Go to file
Bjoern Rabenstein f4be228ba0 Fix a race condition in the http instrumentation.
computeApproximateRequestSize is run in a goroutine, but the
handlerFunc that runs in parallel may modify the URL, which is also
needed by computeApproximateRequestSize. So get the URL length
beforehand.

Change-Id: Idb84735845afe7be4ef79b3d642d5764f6d26a7c
2014-10-08 19:01:24 +02:00
_vendor Vendorize perks/quantile. 2014-06-23 19:48:50 +02:00
extraction Complete rewrite of the exposition library. 2014-06-17 14:08:22 +02:00
model Make the collectorID independent of the desc order. 2014-06-26 15:50:11 +02:00
prometheus Fix a race condition in the http instrumentation. 2014-10-08 19:01:24 +02:00
text Complete rewrite of the exposition library. 2014-06-17 14:08:22 +02:00
.gitignore Enclose artifact generation process into Makefile. 2013-07-21 17:45:53 +02:00
.travis.yml Complete rewrite of the exposition library. 2014-06-17 14:08:22 +02:00
LICENSE Complete rewrite of the exposition library. 2014-06-17 14:08:22 +02:00
Makefile Complete rewrite of the exposition library. 2014-06-17 14:08:22 +02:00
README.md Complete rewrite of the exposition library. 2014-06-17 14:08:22 +02:00

README.md

Overview

This is the Prometheus Go client library. It provides several distinct functions, and there is separate documentation for each respective component. You will want to select the appropriate topic below to continue your journey:

  1. See the exposition library if you want to export metrics to a Prometheus server or pushgateway

  2. See the consumption library if you want to process metrics exported by a Prometheus client. (The Prometheus server is using that library.)

GoDoc

Getting Started

Testing

$ go test ./...

Continuous Integration

Build Status

Contributing

See the contributing guidelines for the Prometheus server.