The Prometheus monitoring system and time series database.
Find a file
Bjoern Rabenstein a2feed343a Convert another occurrence from chan bool to chan struct{}.
Change-Id: I11ba127a934ee3aec0fcd139ad32a7751cff77a0
2014-11-25 17:10:39 +01:00
.build Simplify makefiles. 2014-11-25 17:10:39 +01:00
config Simplify makefiles. 2014-11-25 17:10:39 +01:00
documentation Add Java implementation links to metric model docs. 2014-02-27 15:08:44 +01:00
notification Improve scraper shutdown time. 2014-11-25 17:10:39 +01:00
retrieval Convert another occurrence from chan bool to chan struct{}. 2014-11-25 17:10:39 +01:00
rules Simplify makefiles. 2014-11-25 17:10:39 +01:00
stats Initial experimental snapshot of next-gen storage. 2014-11-25 17:02:00 +01:00
storage Remove debug log line. 2014-11-25 17:10:39 +01:00
templates Fix targetpool_test.go and other tests. 2014-11-25 17:08:26 +01:00
tools Simplify makefiles. 2014-11-25 17:10:39 +01:00
utility Fix typo in comment. 2014-11-25 17:10:39 +01:00
web Simplify makefiles. 2014-11-25 17:10:39 +01:00
.gitignore More updates for first time users. 2013-10-22 20:54:43 +02:00
.pkgignore Make prometheus build on bazooka repo manager 2013-06-13 16:31:33 +02:00
.travis.yml Trailing build system cleanups. 2013-06-13 15:38:03 +02:00
build_info.go Simplify makefiles. 2014-11-25 17:10:39 +01:00
CHANGELOG.md Cut v0.8.0. 2014-11-25 17:02:01 +01:00
CONTRIBUTING.md Link to relevant style guidelines. 2014-05-06 12:23:03 +02:00
CONTRIBUTORS.md Update community documentation. 2013-03-28 10:46:41 +01:00
Dockerfile Build prometheus tools as well 2014-11-25 17:01:59 +01:00
LICENSE Address outstanding comments from PR/47 and other cleanups. 2013-02-07 11:38:01 +01:00
main.go Evict based on memory pressure. Evict recently used chunks last. 2014-11-25 17:10:39 +01:00
Makefile Simplify makefiles. 2014-11-25 17:10:39 +01:00
Makefile.INCLUDE Simplify makefiles. 2014-11-25 17:10:39 +01:00
MANIFEST Add MANIFEST listing 3rd party libs and versions. 2013-04-09 13:31:56 +02:00
README.md Simplify makefiles. 2014-11-25 17:10:39 +01:00
tests-for-die-in-a-fire-travis.sh Remove gvm on travis. 2013-06-13 14:36:00 +02:00

Prometheus

Bedecke deinen Himmel, Zeus! A new kid is in town.

Prometheus is a generic time series collection and computation server that is useful in the following fields:

  • Industrial Experimentation / Real-Time Behavioral Validation / Software Release Qualification
  • Econometric and Natural Sciences
  • Operational Concerns and Monitoring

The system is designed to collect telemetry from named targets on given intervals, evaluate rule expressions, display the results, and trigger an action if some condition is observed to be true.

Prerequisites

In your PATH, you must have the following binaries available:

  • curl
  • xxd
  • sed
  • gzip

If you change any of the *.proto files, you need to install [protoc, the protobuf compiler](http://code.google.com/p/protobuf/](http://code.google.com/p/protobuf/), v2.5.0 or higher.

TODO: lexer, golex

Getting Started

For basic help how to get started:

  • The source code is periodically indexed: Prometheus Core.
  • For UNIX-like environment users, please consult the Travis CI configuration in .travis.yml and Makefile.
  • All of the core developers are accessible via the Prometheus Developers Mailinglist.

General

For first time users, simply run the following:

$ make
$ ARGUMENTS="-configFile=documentation/examples/prometheus.conf" make run

${ARGUMENTS} is passed verbatim into the makefile and thusly Prometheus as $(ARGUMENTS). This is useful for quick one-off invocations and smoke testing.

If you run into problems, try the following:

$ SILENCE_THIRD_PARTY_BUILDS=false make

Upon having a satisfactory build, it's possible to create an artifact for end-user distribution:

$ make package
$ find build/package

build/package will be sufficient for whatever archiving mechanism you choose. The important thing to note is that Go presently does not staticly link against C dependency libraries, so including the lib directory is paramount. Providing LD_LIBRARY_PATH or DYLD_LIBRARY_PATH in a scaffolding shell script is advised.

Problems

If at any point you run into an error with the make build system in terms of its not properly scaffolding things on a given environment, please file a bug or open a pull request with your changes if you can fix it yourself.

Please note that we're explicitly shooting for stable runtime environments and not the latest-whiz bang releases; thusly, we ask you to provide ample architecture and release identification remarks for us.

Testing

$ make test

Packaging

$ make package

Race Detector

Go 1.1 includes a race detector which can be enabled at build time. Here's how to use it with Prometheus (assumes that you've already run a successful build).

To run the tests with race detection:

$ GORACE="log_path=/tmp/foo" go test -race ./...

To run the server with race detection:

$ go build -race .
$ GORACE="log_path=/tmp/foo" ./prometheus

Build Status

Contributing

Refer to CONTRIBUTING.md

License

Apache License 2.0