Julius Volz
8d80bf4696
Fix some dead code, missing error checks, shadowings.
...
I applied
https://medium.com/@jgautheron/quality-pipeline-for-go-projects-497e34d6567
and was greeted with a deluge of warnings, most of which were not
applicable or really fixable realistically. These are some of the first
ones I decided to fix.
2016-01-11 16:48:15 +01:00
Julius Volz
5aa3bee006
Remove notice about 0.14.x config file format change.
2016-01-11 16:48:14 +01:00
Jimmi Dyson
ba7c737b25
Kubernetes SD config check
2016-01-11 16:48:14 +01:00
Jimmi Dyson
609db27948
Move TLS options to scrape config
...
Fixes #1013 , fixes #989
2016-01-11 16:48:14 +01:00
Fabian Reinartz
d6ac8c57aa
Attach global labels to remote storage samples
2016-01-11 16:48:13 +01:00
Fabian Reinartz
20d7228eb4
Attach global labels to outgoing alerts.
2016-01-11 16:48:13 +01:00
Fabian Reinartz
8d8fdeaa58
Add global labels to federation
2016-01-11 16:48:13 +01:00
Silas Snider
464fe38038
Add instrumentation around configuration reloads.
...
This commit enables automation (and alerting) around attempts to update prometheus
server configuration automatically.
2016-01-11 16:48:12 +01:00
Julius Volz
bb0ba8d68f
Fix most golint warnings.
...
This is with `golint -min_confidence=0.5`.
I left several lint warnings untouched because they were either
incorrect or I felt it was better not to change them at the moment.
2016-01-11 16:48:11 +01:00
Julius Volz
274e9d6955
Exit when web server encounters a startup error
2015-08-20 18:23:57 +02:00
Fabian Reinartz
18c0f347a3
Fix loop-reloading on shutdown
2015-08-14 16:29:34 +02:00
Jan Berktold
2bf7048dbb
Add reload handler to web
2015-08-11 11:27:15 +02:00
Fabian Reinartz
73f1cc807d
Check token and cert file existence in promtool
2015-08-10 11:42:29 +02:00
Fabian Reinartz
7a67472fc1
Resolve relative paths on configuration loading
...
This moves the concern of resolving the files relative to the config
file into the configuration loading itself.
It also fixes #921 which did not load the cert and token files relatively.
2015-08-05 18:08:04 +02:00
Fabian Reinartz
7e615dcdf0
cmd/promtool: resolve rule files relative to config file
2015-07-03 15:10:37 +02:00
Fabian Reinartz
feb8a03503
rules: load rule files relative to a base dir
2015-07-03 15:10:37 +02:00
Julius Volz
fcff35b43e
Consolidate external reachability flags into one.
...
Besides fixing https://github.com/prometheus/prometheus/issues/805 by
making the entire externally reachable server URL configurable, this
adds tests for the "globalURL" template function and makes it easier to
test other such functions in the future.
This breaks the `web.Hostname` flag (and introduces `web.external-url`).
This flag is likely only used by few users, so I hope that's
justifiable.
Fixes https://github.com/prometheus/prometheus/issues/805
2015-07-03 13:39:10 +02:00
Fabian Reinartz
b201725d1c
cmd/prometheus: fix remote storage fanout
2015-06-26 01:34:51 +02:00
Julius Volz
8887f1e1a2
Merge pull request #853 from prometheus/fabxc/help
...
cmd/prometheus: improve help output
2015-06-25 18:59:01 +02:00
Fabian Reinartz
525070419b
cmd/prometheus: improve help output
2015-06-25 18:53:51 +02:00
Fabian Reinartz
bcc8101d9e
cmd/promtool: fix missing builddate in version info
2015-06-25 17:21:24 +02:00
Fabian Reinartz
23e77450ff
main: cleanup initialization of remote storage.
2015-06-23 18:24:48 +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
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
f97db8d4e5
cmd/prometheus: fix version output
2015-06-18 12:53:00 +02:00
Fabian Reinartz
39edc2df7a
version: move version information into separate package.
...
Version information is determined at build-time and thus there is
no need to pass it down from main. In its own package it can
be used from various other packages.
2015-06-16 14:48:29 +02:00
Fabian Reinartz
de66e32a4d
cmd/prometheus: create new main package.
2015-06-15 19:01:06 +02:00