Commit db88b605 authored by lucperkins's avatar lucperkins

Merge remote-tracking branch 'upstream/master' into lperkins/issue-750-sample-term

Signed-off-by: 's avatarlucperkins <lucperkins@gmail.com>
parents 8bf4a0d6 7f96eaaa
...@@ -11,7 +11,11 @@ tmp/ ...@@ -11,7 +11,11 @@ tmp/
# Crash Log # Crash Log
crash.log crash.log
# OS X file # macOS artifacts
static/.DS_Store .DS_Store
prometheus_rsa prometheus_rsa
# Ruby artifacts
.bundle/
vendor/
NANOC = bundle exec nanoc
GUARD = bundle exec guard
DOWNLOADS := prometheus alertmanager blackbox_exporter consul_exporter graphite_exporter haproxy_exporter memcached_exporter mysqld_exporter node_exporter pushgateway statsd_exporter DOWNLOADS := prometheus alertmanager blackbox_exporter consul_exporter graphite_exporter haproxy_exporter memcached_exporter mysqld_exporter node_exporter pushgateway statsd_exporter
build: clean downloads compile build: clean downloads compile
bundle:
bundle config build.nokogiri --use-system-libraries
bundle install --path vendor
clean: clean:
rm -rf output downloads repositories rm -rf output downloads repositories
compile: compile:
bundle exec nanoc $(NANOC)
downloads: $(DOWNLOADS:%=downloads/%/repo.json) $(DOWNLOADS:%=downloads/%/releases.json) downloads: $(DOWNLOADS:%=downloads/%/repo.json) $(DOWNLOADS:%=downloads/%/releases.json)
...@@ -20,4 +26,10 @@ downloads/%/releases.json: ...@@ -20,4 +26,10 @@ downloads/%/releases.json:
@echo "curl -sf -H 'Accept: application/vnd.github.v3+json' <GITHUB_AUTHENTICATION> https://api.github.com/repos/prometheus/$*/releases > $@" @echo "curl -sf -H 'Accept: application/vnd.github.v3+json' <GITHUB_AUTHENTICATION> https://api.github.com/repos/prometheus/$*/releases > $@"
@curl -sf -H 'Accept: application/vnd.github.v3+json' $(GITHUB_AUTHENTICATION) https://api.github.com/repos/prometheus/$*/releases > $@ @curl -sf -H 'Accept: application/vnd.github.v3+json' $(GITHUB_AUTHENTICATION) https://api.github.com/repos/prometheus/$*/releases > $@
.PHONY: build compile deploy guard:
$(GUARD)
serve:
$(NANOC) view
.PHONY: build bundle clean compile downloads serve
...@@ -15,12 +15,12 @@ As a guideline, please keep the documentation generally applicable and avoid use ...@@ -15,12 +15,12 @@ As a guideline, please keep the documentation generally applicable and avoid use
## Prerequisites ## Prerequisites
You need to have a working Ruby environment set up and then install the You need to have a working Ruby environment set up (including [bundler](https://bundler.io/))
necessary gems: and then install the necessary gems:
```bash ```bash
cd docs cd docs
bundle make bundle
``` ```
## Building ## Building
...@@ -39,9 +39,9 @@ To run a local server that displays the generated site, run: ...@@ -39,9 +39,9 @@ To run a local server that displays the generated site, run:
```bash ```bash
# Rebuild the site whenever relevant files change: # Rebuild the site whenever relevant files change:
bundle exec guard make guard
# Start the local development server: # Start the local development server in a separate shell:
bundle exec nanoc view make serve
``` ```
You should now be able to view the generated site at You should now be able to view the generated site at
......
...@@ -16,7 +16,7 @@ makes it easy to instrument even shell scripts without a client library. ...@@ -16,7 +16,7 @@ makes it easy to instrument even shell scripts without a client library.
[README.md](https://github.com/prometheus/pushgateway/blob/master/README.md). [README.md](https://github.com/prometheus/pushgateway/blob/master/README.md).
* For use from Java see the * For use from Java see the
[PushGateway](https://prometheus.io/client_java/io/prometheus/client/exporter/PushGateway.html) [PushGateway](https://prometheus.github.io/client_java/io/prometheus/client/exporter/PushGateway.html)
class. class.
* For use from Go see the [Push](http://godoc.org/github.com/prometheus/client_golang/prometheus#Push) and [PushAdd](http://godoc.org/github.com/prometheus/client_golang/prometheus#PushAdd) functions. * For use from Go see the [Push](http://godoc.org/github.com/prometheus/client_golang/prometheus#Push) and [PushAdd](http://godoc.org/github.com/prometheus/client_golang/prometheus#PushAdd) functions.
......
...@@ -312,15 +312,8 @@ descriptions, to lead by example. ...@@ -312,15 +312,8 @@ descriptions, to lead by example.
## Exposition ## Exposition
Clients MUST implement one of the documented [exposition Clients MUST implement the text-based exposition format outlined in the
formats](/docs/instrumenting/exposition_formats). [exposition formats](/docs/instrumenting/exposition_formats) documentation.
Clients MAY implement more than one format. There SHOULD be a human readable
format offered.
If in doubt, go for the text format. It doesn’t have a dependency (protobuf),
tends to be easy to produce, is human readable and the performance benefits of
protobuf are not that significant for most use cases.
Reproducible order of the exposed metrics is ENCOURAGED (especially for human Reproducible order of the exposed metrics is ENCOURAGED (especially for human
readable formats) if it can be implemented without a significant resource cost. readable formats) if it can be implemented without a significant resource cost.
...@@ -368,12 +361,12 @@ unit-test their use of the instrumentation code. For example, the ...@@ -368,12 +361,12 @@ unit-test their use of the instrumentation code. For example, the
## Packaging and dependencies ## Packaging and dependencies
Ideally, a client library can be included in any application to add some Ideally, a client library can be included in any application to add some
instrumentation, without having to worry about it breaking the application. instrumentation without breaking the application.
Accordingly, caution is advised when adding dependencies to the client library. Accordingly, caution is advised when adding dependencies to the client library.
For example, if a user adds a library that uses a Prometheus client that For example, if you add a library that uses a Prometheus client that requires
requires version 1.4 of protobuf but the application uses 1.2 elsewhere, what version x.y of a library but the application uses x.z elsewhere, will that have
will happen? an adverse impact on the application?
It is suggested that where this may arise, that the core instrumentation is It is suggested that where this may arise, that the core instrumentation is
separated from the bridges/exposition of metrics in a given format. For separated from the bridges/exposition of metrics in a given format. For
......
...@@ -63,7 +63,7 @@ The current team members are: ...@@ -63,7 +63,7 @@ The current team members are:
* Matthias Rampke * Matthias Rampke
* Max Inden * Max Inden
* Richard Hartmann * Richard Hartmann
* Simon Pasquer * Simon Pasquier
* Steve Durrheimer * Steve Durrheimer
* Stuart Nelson * Stuart Nelson
* Tobias Schmidt * Tobias Schmidt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment