README.md 3.28 KB
Newer Older
1
# Prometheus
Matt T. Proud's avatar
Matt T. Proud committed
2

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

Matt T. Proud's avatar
Matt T. Proud committed
5
6
7
Prometheus is a generic time series collection and computation server that is
useful in the following fields:

8
9
10
* Industrial Experimentation / Real-Time Behavioral Validation / Software Release Qualification
* Econometric and Natural Sciences
* Operational Concerns and Monitoring
Matt T. Proud's avatar
Matt T. Proud committed
11
12
13
14

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.
15

16
## Prerequisites
Bjoern Rabenstein's avatar
Bjoern Rabenstein committed
17
18
19
20
21
22
23
24
25
26

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
27

28
## Getting Started
29
30
31

For basic help how to get started:

32
  * The source code is periodically indexed: [Prometheus Core](http://godoc.org/github.com/prometheus/prometheus).
33
  * For UNIX-like environment users, please consult the Travis CI configuration in _.travis.yml_ and _Makefile_.
34
  * All of the core developers are accessible via the [Prometheus Developers Mailinglist](https://groups.google.com/forum/?fromgroups#!forum/prometheus-developers).
35

36
37
38
39
40
### General

For first time users, simply run the following:

    $ make
41
42
43
44
45
    $ 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.
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72

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.

Matt T. Proud's avatar
Matt T. Proud committed
73
74
## Testing

75
76
    $ make test

77
78
79
80
## Packaging

    $ make package

81
82
### Race Detector

Matt T. Proud's avatar
Matt T. Proud committed
83
84
85
Go 1.1 includes a [race detector](http://tip.golang.org/doc/articles/race_detector.html)
which can be enabled at build time. Here's how to use it with Prometheus
(assumes that you've already run a successful build).
86
87
88
89
90
91
92
93
94
95

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

Matt T. Proud's avatar
Matt T. Proud committed
96
97
[![Build Status](https://travis-ci.org/prometheus/prometheus.png)](https://travis-ci.org/prometheus/prometheus)

98
99
## Contributing

100
Refer to [CONTRIBUTING.md](CONTRIBUTING.md)
101

102
## License
103
104

Apache License 2.0