Commit graph

7546 commits

Author SHA1 Message Date
Fabian Reinartz 749ae450c5 promql: add runbook to alert statement.
This commit adds the RUNBOOK keyword to alert statements. The field
is optional and expected to be a link.
2015-06-25 13:00:52 +02:00
Julius Volz 689ed7978f Merge pull request #845 from prometheus/fabxc/apifix
promql: add MarshalJSON method for ExprType.
2015-06-25 12:25:45 +02:00
Fabian Reinartz 7f85b9b215 promql: add MarshalJSON method for ExprType. 2015-06-25 12:01:26 +02:00
Brian Brazil 52859b8033 Merge pull request #836 from prometheus/shard
Add 'hashmod' relabel action.
2015-06-24 21:40:10 +01:00
Brian Brazil 682f949ab1 Add 'hashmod' relabel action.
This takes the modulus of a hash of some labels.
Combined with a keep relabel action, this allows
for sharding of targets across multiple prometheus
servers.
2015-06-24 21:14:53 +01:00
Fabian Reinartz 2677d7b99a Merge pull request #842 from prometheus/fabxc/consulcfg
retrieval/discovery: refresh services in Consul to recover from missing events
2015-06-24 17:58:59 +02:00
Julius Volz 9607b8bbdb Merge pull request #840 from prometheus/fix-scrape-errors-ui
Fix blown-up scrape error display in web UI.
2015-06-24 17:55:01 +02:00
Julius Volz 32a77085e0 Merge pull request #841 from prometheus/fix-cors-perms
Disallow cross-origin DELETE and POST requests.
2015-06-24 17:53:12 +02:00
Fabian Reinartz 23862c92c4 retrieval/discovery: refresh services in Consul to recover from missing events. 2015-06-24 17:48:27 +02:00
Julius Volz bc1c789bab Disallow cross-origin DELETE and POST requests. 2015-06-24 17:26:49 +02:00
Fabian Reinartz 3fcd26b328 Merge pull request #838 from prometheus/fabxc/consulcfg
config: add omitempty for consul SD config.
2015-06-24 17:24:05 +02:00
Julius Volz c7039c3a73 Fix blown-up scrape error display in web UI. 2015-06-24 17:22:16 +02:00
Fabian Reinartz 4319b06dd2 config: add omitempty for consul SD config. 2015-06-24 16:22:52 +02:00
Julius Volz 364003c444 Merge pull request #837 from prometheus/update-web
Update web/blog/files.go with new web content.
2015-06-24 15:41:36 +02:00
Julius Volz 535a7f2640 Update web/blog/files.go with new web content. 2015-06-24 15:26:01 +02:00
Fabian Reinartz 3e811ad7a4 Merge pull request #827 from prometheus/fabxc/rmt-cleanup
main: cleanup initialization of remote storage.
2015-06-24 09:53:47 +02:00
Julius Volz 30fc04b240 Merge pull request #834 from prometheus/improve-dockerfile-deps
Simplify Go dependency handling in Dockerfile.
2015-06-24 00:04:02 +02:00
Julius Volz c69b733956 Simplify Go dependency handling in Dockerfile.
Also, put quotes around the GOPATH in the Makefile for safety in case of
spaces, etc.
2015-06-23 23:58:09 +02:00
Julius Volz 0e383b0b9f Merge pull request #833 from prometheus/remove-go-get
Remove unused GO_GET from Makefile.INCLUDE.
2015-06-23 23:38:41 +02:00
Julius Volz c813eee457 Remove unused GO_GET from Makefile.INCLUDE. 2015-06-23 22:57:41 +02:00
Fabian Reinartz c292979374 retrieval: double timeout in target scrape test. 2015-06-23 21:59:55 +02:00
Fabian Reinartz f149389d29 Merge pull request #828 from prometheus/fabxc/cfgout
config: show original input on String()
2015-06-23 21:57:43 +02:00
Julius Volz 9d7fa930ce Merge pull request #831 from prometheus/fix-time-utc
Switch human-readable times to UTC.
2015-06-23 21:26:56 +02:00
Julius Volz bbc8b8490e Switch human-readable times to UTC.
This fixes https://github.com/prometheus/prometheus/issues/829
2015-06-23 21:26:05 +02:00
Fabian Reinartz 7ec15956e4 config: show original input on String() 2015-06-23 19:40:44 +02:00
Julius Volz cc18191b5e Merge pull request #826 from prometheus/alerting-ui-improvements
Use TemplateExpander for main pages, improve alerting UI
2015-06-23 19:03:14 +02:00
Julius Volz d868264bb8 Improve UI of /alerts page.
Changes to the UI:
- "Active Since" timestamps are now human-readable.
- Alerting rules are now pretty-printed better.
- Labels are no longer just strings, but alert bubbles (like we do on
  the status page for base labels).
- Alert states and target health states are now capitalized in the
  presentation layer rather than at the source.
2015-06-23 18:48:45 +02:00
Fabian Reinartz 23e77450ff main: cleanup initialization of remote storage. 2015-06-23 18:24:48 +02:00
Julius Volz d7ea0397d4 Use templates.TemplateExpander for all page templates.
This will allow us to use all of our shiny templating functions in the
main page templates as well.
2015-06-23 17:53:06 +02:00
Björn Rabenstein 7d0850571d Merge pull request #825 from prometheus/beorn7/doc
Minor doc fixes.
2015-06-23 17:07:48 +02:00
beorn7 8c196c1028 Minor doc fixes. 2015-06-23 17:07:18 +02:00
Fabian Reinartz e18bc94980 Merge pull request #786 from prometheus/fabxc/federate
web: add basic federation support
2015-06-23 14:17:28 +02:00
Fabian Reinartz 53b9d5917d web: improve target URL handling and display. 2015-06-23 13:45:15 +02:00
Fabian Reinartz 6bfb4549a6 storage: add LastSamplePairForFingerprint method 2015-06-23 13:45:15 +02:00
Fabian Reinartz 39a8254963 web: add basic federation support.
This commit adds a federation handler on /federate. It accepts `match[]`
query parameters containing vector selectors. Their intersection determines
the in-memory metrics that are returned in the same way as the
/metrics endpoint does (modulo sorting).
2015-06-23 13:45:15 +02:00
Fabian Reinartz dc7d27ab9a retrieval: add honor label handling and parametrized querying.
This commit adds the honor_labels and params arguments to the scrape
config. This allows to specify query parameters used by the scrapers
and handling scraped labels with precedence.
2015-06-23 13:45:14 +02:00
Fabian Reinartz 37dea6a251 Merge pull request #824 from prometheus/fabxc/gitignore
git: ignore promtool, be less strict about config files.
2015-06-23 12:08:15 +02:00
Fabian Reinartz 6885ec8ef9 git: ignore promtool, be less strict about config files. 2015-06-23 11:53:00 +02:00
Fabian Reinartz 07347aa1d9 Merge pull request #823 from prometheus/fabxc/rdme
general README update
2015-06-23 08:37:49 +02:00
Fabian Reinartz 024139be00 readme: remove tools that are no longer required 2015-06-23 00:40:44 +02:00
Björn Rabenstein 618a9d15f2 Merge pull request #821 from prometheus/beorn7/fix
Increment dirty counter only if setDirty(true) is called.
2015-06-22 18:19:28 +02:00
beorn7 9016917d1c Increment dirty counter only if setDirty(true) is called.
Currently, we increment the counter even if setDirty(false) is called,
which sets the storage clean.
2015-06-22 18:12:55 +02:00
Fabian Reinartz ccbc801d19 Merge pull request #816 from prometheus/fabxc/promctl
Create promtool command
2015-06-22 16:40:09 +02:00
Fabian Reinartz d27e45cc74 make: add promtool to build and tarball targets. 2015-06-22 16:09:37 +02:00
Fabian Reinartz 890c1a7e74 cmd/promtool: add promtool command.
The promtool command should bundle multiple commands that help
in maintaining a running Prometheus server.
2015-06-22 16:06:18 +02:00
Fabian Reinartz 1eff186555 Merge pull request #810 from prometheus/fabxc/lmatch
Match empty labels.
2015-06-22 15:45:50 +02:00
Fabian Reinartz 5b91ea9b36 storage: improve label matching and allow unset matching.
Matching of empty labels now also matches metrics where the label
was not explicitly set to the empty string.
2015-06-22 15:33:44 +02:00
Fabian Reinartz 46df1fd5ea storage/local: add benchmark for label matching. 2015-06-22 15:33:44 +02:00
Fabian Reinartz 94cd321be1 promql: error if all label matchers are empty. 2015-06-22 15:33:44 +02:00
Julius Volz 6d99e3b3f7 Merge pull request #819 from sdurrheimer/master
Fix Dockerfile with the recent changes
2015-06-21 20:29:50 +02:00