The Prometheus monitoring system and time series database.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Bjoern Rabenstein 95f392fb2c Prevent an indexing death spiral. 10 years ago
.build Beginnings of a tiered index implementation. 10 years ago
coding/indexable Remove some dead code. 11 years ago
config Merge "Replace some uses of obsolete `/metrics.json` with `/metrics` (haven't touched test files yet)." 11 years ago
documentation Add Java implementation links to metric model docs. 11 years ago
model Add label names -> label values index. 11 years ago
notification Clean up start-up and shut-down. 10 years ago
retrieval Remove unused metrics. 10 years ago
rules Squash a number of TODOs. 10 years ago
stats Initial experimental snapshot of next-gen storage. 10 years ago
storage Prevent an indexing death spiral. 10 years ago
templates Fix targetpool_test.go and other tests. 10 years ago
tools Initial experimental snapshot of next-gen storage. 10 years ago
utility Beginnings of a tiered index implementation. 10 years ago
web Add back consoles link. 10 years ago
.gitignore More updates for first time users. 11 years ago
.pkgignore Make prometheus build on bazooka repo manager 12 years ago
.travis.yml Trailing build system cleanups. 12 years ago
CHANGELOG.md Cut v0.8.0. 10 years ago
CONTRIBUTING.md Link to relevant style guidelines. 11 years ago
CONTRIBUTORS.md
Dockerfile Build prometheus tools as well 10 years ago
LICENSE
MANIFEST Add MANIFEST listing 3rd party libs and versions. 12 years ago
Makefile Update used Go version to 1.3. 10 years ago
Makefile.INCLUDE Update used Go version to 1.3. 10 years ago
README.md Merge changes I53a24c06,Ibe1def5c,Ife68c9c6,Ia3284a90 11 years ago
VERSION Cut v0.8.0. 10 years ago
build_info.go Introduce semantic versioning. 11 years ago
main.go Remove unused flags. 10 years ago
tests-for-die-in-a-fire-travis.sh Remove gvm on travis. 12 years ago

README.md

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

If you read below in the Getting Started section, the build infrastructure will take care of the following things for you in most cases:

  1. Go 1.1.
  2. LevelDB: https://code.google.com/p/leveldb/.
  3. Protocol Buffers Compiler: http://code.google.com/p/protobuf/.
  4. goprotobuf: the code generator and runtime library: http://code.google.com/p/goprotobuf/.
  5. Levigo, a Go-wrapper around LevelDB's C library: https://github.com/jmhodges/levigo.
  6. GoRest, a RESTful style web-services framework: http://code.google.com/p/gorest/.
  7. Prometheus Client, Prometheus in Prometheus https://github.com/prometheus/client_golang.
  8. Snappy, a compression library for LevelDB and Levigo http://code.google.com/p/snappy/.

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