The Prometheus monitoring system and time series database.
Go HTML JavaScript CSS Makefile Protocol Buffer
Latest commit e5a75b2 Jan 19, 2017 @larkinscott larkinscott committed with beorn7 Code Climate config (#2351)
Created a Code Climate config with gofmt, golint, and govet enabled
Permalink
Failed to load latest commit information.
.github .github: Add issue template Jun 6, 2016
cmd Fixed style issues. Jan 16, 2017
config Cleaner separation between ServiceAccount and custom authentication i… Jan 19, 2017
console_libraries Add blackbox console. Nov 1, 2015
consoles Add various persistence related metrics (#2333) Jan 11, 2017
discovery Cleaner separation between ServiceAccount and custom authentication i… Jan 19, 2017
documentation Kubernetes SD: More fixes to example config Nov 29, 2016
notifier Correct notifications_dropped description Jan 13, 2017
promql Add max concurrent and current queries engine metrics (#2326) Jan 7, 2017
relabel Only clone the metric in the one place relabelling needs it. (#2292) Dec 21, 2016
retrieval Merge pull request #2323 from prometheus/beorn7/retrieval Jan 8, 2017
rules rules: update annotations on each iteration Nov 22, 2016
scripts New release process using docker, circleci and a centralized Apr 18, 2016
storage Only checkpoint chunkdescs and series that need persisting. (#2340) Jan 17, 2017
template storage: Contextify storage interfaces. Sep 19, 2016
util Add HTTP Basic Auth & TLS support to the generic write path. (#1957) Sep 19, 2016
vendor vendoring: Update prometheus/common to pull in bug fixes Jan 9, 2017
web web/api: make target and alertmanager api responses consistent Jan 16, 2017
.codeclimate.yml Code Climate config (#2351) Jan 19, 2017
.dockerignore New release process using docker, circleci and a centralized Apr 18, 2016
.gitignore gitignore: clean up Jul 4, 2016
.promu.yml promu: Use default Go version again Oct 11, 2016
.travis.yml travis: update used Go compiler version Nov 25, 2016
AUTHORS.md AUTHORS.md: Add link to Github contributors page Nov 14, 2016
CHANGELOG.md *: cut 1.4.1 Nov 28, 2016
CONTRIBUTING.md Update CONTRIBUTING.md. Jan 22, 2015
Dockerfile Docker: Move console dirs to /usr/share/prometheus Jul 29, 2016
LICENSE Clean up license issues. Jan 21, 2015
Makefile Add promu installation logging to Makefile Sep 15, 2016
NOTICE Replace handlebars with the simpler and saner mustache library. Nov 17, 2016
README.md Make relative links in README.md absolute (#2316) Jan 3, 2017
VERSION *: cut 1.4.1 Nov 28, 2016
circle.yml circle: update golang-builder image version Nov 25, 2016
code-of-conduct.md Add CNCF code of conduct as the Prometheus code of conduct Oct 19, 2016

README.md

Prometheus Build Status

CircleCI Docker Repository on Quay Docker Pulls Go Report Card

Visit prometheus.io for the full documentation, examples and guides.

Prometheus, a Cloud Native Computing Foundation project, is a systems and service monitoring system. It collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts if some condition is observed to be true.

Prometheus' main distinguishing features as compared to other monitoring systems are:

  • a multi-dimensional data model (timeseries defined by metric name and set of key/value dimensions)
  • a flexible query language to leverage this dimensionality
  • no dependency on distributed storage; single server nodes are autonomous
  • timeseries collection happens via a pull model over HTTP
  • pushing timeseries is supported via an intermediary gateway
  • targets are discovered via service discovery or static configuration
  • multiple modes of graphing and dashboarding support
  • support for hierarchical and horizontal federation

Architecture overview

Install

There are various ways of installing Prometheus.

Precompiled binaries

Precompiled binaries for released versions are available in the download section on prometheus.io. Using the latest production release binary is the recommended way of installing Prometheus. See the Installing chapter in the documentation for all the details.

Debian packages are available.

Docker images

Docker images are available on Quay.io.

Building from source

To build Prometheus from the source code yourself you need to have a working Go environment with version 1.5 or greater installed.

You can directly use the go tool to download and install the prometheus and promtool binaries into your GOPATH. We use Go 1.5's experimental vendoring feature, so you will also need to set the GO15VENDOREXPERIMENT=1 environment variable in this case:

$ GO15VENDOREXPERIMENT=1 go get github.com/prometheus/prometheus/cmd/...
$ prometheus -config.file=your_config.yml

You can also clone the repository yourself and build using make:

$ mkdir -p $GOPATH/src/github.com/prometheus
$ cd $GOPATH/src/github.com/prometheus
$ git clone https://github.com/prometheus/prometheus.git
$ cd prometheus
$ make build
$ ./prometheus -config.file=your_config.yml

The Makefile provides several targets:

  • build: build the prometheus and promtool binaries
  • test: run the tests
  • format: format the source code
  • vet: check the source code for common errors
  • assets: rebuild the static assets
  • docker: build a docker container for the current HEAD

More information

  • The source code is periodically indexed: Prometheus Core.
  • You will find a Travis CI configuration in .travis.yml.
  • All of the core developers are accessible via the Prometheus Developers Mailinglist and the #prometheus channel on irc.freenode.net.

Contributing

Refer to CONTRIBUTING.md

License

Apache License 2.0, see LICENSE.