Max Inden
ecf676cf97
web/api: Expose rule health and last error ( #4501 )
...
Expose rule health and last evaluation error on `/api/v1/rules`.
Signed-off-by: Max Leonard Inden <IndenML@gmail.com>
2018-08-23 18:30:10 +05:30
Krasi Georgiev
12fe204ea6
move runtime debug funcs in own package ( #4494 )
...
To make local debuging with `go run` easyer moved all files into a
dedicate package `runtime`.
This allows running prometheus just by using `go run main.go` instead of
passing mani files like `go run main.go limits_default.go ...`
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
2018-08-22 13:41:11 +03:00
Goutham Veeramachaneni
f3b7c22827
rules: add comment about lock taking ( #4525 )
...
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
2018-08-21 21:30:08 +02:00
Ganesh Vernekar
c663477688
Fixed TestUpdate in rules/manager_test.go ( #4516 )
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2018-08-20 18:21:05 +05:30
Fabian Reinartz
f571b69010
Merge pull request #4514 from jkohen/ec2-targets
...
Expose EC2 instance owner as a discovery label.
2018-08-20 08:43:44 +02:00
Javier Kohen
1c89984778
Expose EC2 instance owner as a discovery label.
...
This exposes the OwnerID field of the DescribeInstances respons as .
Signed-off-by: Javier Kohen <jkohen@google.com>
2018-08-17 11:30:18 -04:00
Julius Volz
8fbe1b5133
Handle a bunch of unchecked errors ( #4461 )
...
There are many more (mostly finalizers like Close/Stop/etc.), but most of
the others seemed like one couldn't do much about them anyway.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2018-08-17 17:24:35 +02:00
Yecheng Fu
d4eae8cc0c
Wait for all internal discoveries are done before exiting. ( #4508 )
...
Signed-off-by: Yecheng Fu <cofyc.jackson@gmail.com>
2018-08-17 18:50:22 +05:30
Ganesh Vernekar
a0a9e7df91
Fix TestForStateRestore ( #4476 ) ( #4512 )
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2018-08-16 22:56:15 +05:30
Goutham Veeramachaneni
71855a22a4
Add tracing spans to promql ( #4436 )
...
* Add spans to promql
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
* Simplify timer and span tracking.
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
2018-08-16 13:11:34 +05:30
Julien Pivotto
0b4d22b245
rules/manager: remove a no-longer-relevant comment ( #4503 )
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2018-08-15 09:33:39 +01:00
Chris Marchbanks
11155c7028
Existing alert labels will update based on templates ( #4500 )
...
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
2018-08-15 08:52:08 +01:00
Brian Brazil
cd54add5b8
Clarify that {a="b",a!="c"} is possible. ( #4492 )
...
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
2018-08-13 11:38:57 +01:00
Fabian Reinartz
b04ab71268
Merge pull request #4488 from jkohen/patch-3
...
Populate __meta_gce_instance_id discovery label
2018-08-11 09:52:28 +02:00
Javier Kohen
403ac08ece
Expose __meta_gce_instance_id as an integer (instead of raw bytes).
...
Signed-off-by: Javier Kohen <jkohen@google.com>
2018-08-10 16:21:46 -04:00
Javier Kohen
2d4bcb3ee1
Document the new __meta_gce_instance_id discovery label.
...
Signed-off-by: Javier Kohen <jkohen@google.com>
2018-08-10 11:59:22 -04:00
Javier Kohen
7e9549b398
Added __meta_gce_instance_id discovery label
...
Populated from instance.ID. I will follow up with a change to the documentation.
Signed-off-by: Javier Kohen <jkohen@google.com>
2018-08-10 11:57:55 -04:00
Simon Pasquier
b7054f3a78
Merge pull request #4443 from simonpasquier/fix-consul-connections-leak
...
discovery/consul: close idle connections on stop
2018-08-10 17:43:39 +02:00
Simon Pasquier
d6c590018b
Merge pull request #4472 from simonpasquier/better-gofmt-msg
...
Makefile: improve 'make style' reporting
2018-08-08 09:32:17 +02:00
Simon Pasquier
08c2f50382
Merge pull request #4418 from simonpasquier/log-vm-limits
...
prometheus: log virtual memory limits
2018-08-07 16:27:46 +02:00
Frederic Branczyk
b0b3e3dd74
promql: Remove old and unused alerting/reconding syntax
...
Signed-off-by: Frederic Branczyk <fbranczyk@gmail.com>
2018-08-07 15:14:06 +02:00
Simon Pasquier
a827f91aff
Makefile: improve 'make style' reporting
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-08-07 14:54:20 +02:00
Fabian Reinartz
cc878ea559
Merge pull request #4471 from prometheus/uptsdb
...
vendor: update TSDB
2018-08-07 14:29:26 +02:00
Fabian Reinartz
b7e2f407de
rules: Fix double-locking of mutex
...
Signed-off-by: Fabian Reinartz <freinartz@google.com>
2018-08-07 07:33:39 -04:00
Fabian Reinartz
817e379a0e
vendor: update TSDB
...
Signed-off-by: Fabian Reinartz <freinartz@google.com>
2018-08-07 07:33:39 -04:00
Benji Visser
46fb4078a6
handle nil pointer in ec2 discovery ( #4469 )
...
This handles a nil pointer that was being accessed in EC2 discovery.
Fixes : #4441
Signed-off-by: noqcks <benny@noqcks.io>
2018-08-07 08:35:22 +01:00
Benji Visser
8bb6e0dd6e
Show rule evaluation errors on rules page ( #4457 )
...
* adding information about the health and errors for Rules
adding Health() and LastError() to the Rule interface. This will allow
us to easily surface information about rules.
Signed-off-by: noqcks <benny@noqcks.io>
* updating rules.html with fields for Rule errors and health state
Signed-off-by: noqcks <benny@noqcks.io>
* fix code comment grammar & access Rule health/error info using a mutex
Signed-off-by: noqcks <benny@noqcks.io>
* s/Errors/Error/ in rules.html to remain consistent with targets.html
Signed-off-by: noqcks <benny@noqcks.io>
* adding periods to code comments in reporting/alerting
Signed-off-by: noqcks <benny@noqcks.io>
* putting health/error below mutex in struct field
Signed-off-by: noqcks <benny@noqcks.io>
2018-08-07 00:33:45 +02:00
Julius Volz
2b8fc062a8
rules: HTML-escape rule YAML marshal errors ( #4464 )
...
This was pointed out by `gosec`.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2018-08-05 14:01:51 +02:00
Dave Henderson
73a08f0045
promtool - Adding --step flag to 'query range' subcommand ( #4454 )
...
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2018-08-05 11:03:18 +02:00
Julius Volz
159e1537d2
Remove /heap endpoint ( #4460 )
...
It was added 5 years ago by Matt and I'm not sure anyone ever used
it after public release (since we have /debug/pprof/heap as well).
It also lacked error checking and allows people to write to disk over HTTP.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2018-08-04 21:31:28 +02:00
Julius Volz
90521a65f8
Remove error return value from NotifyFunc() ( #4459 )
...
It's always nil and we also forgot to check it.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2018-08-04 21:31:12 +02:00
Julius Volz
0c54cf489b
Document "<bool>" placeholder in API ( #4465 )
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2018-08-04 21:30:53 +02:00
Ganesh Vernekar
f1db699dff
Persist alert 'for' state across restarts ( #4061 )
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2018-08-02 11:18:24 +01:00
Johannes Scheuermann
f978f5bba3
Fixes #4202 , correctly parse VMs with empty tags ( #4450 )
...
Signed-off-by: Johannes M. Scheuermann <joh.scheuer@gmail.com>
2018-08-02 10:10:17 +01:00
Frederic Branczyk
2236bb6c59
Merge pull request #4336 from jojohappy/upgrade_k8s_client
...
Upgrade k8s client to kubernetes-1.11.0
2018-08-02 09:58:46 +02:00
jojohappy
e060f7755f
To keep comment of NodeLegacyHostIP for k8s node address
...
Signed-off-by: jojohappy <sarahdj0917@gmail.com>
2018-08-02 10:25:28 +08:00
jojohappy
f5794b0ff9
Revert the testdata.txt, should be no change
...
Signed-off-by: jojohappy <sarahdj0917@gmail.com>
2018-08-02 10:25:28 +08:00
jojohappy
e81785d1a3
To keep depecrate k8s node NodeLegacyHostIP as local constant to keep compatibility for older k8s version
...
Signed-off-by: jojohappy <sarahdj0917@gmail.com>
2018-08-02 10:25:28 +08:00
jojohappy
f3735d0ead
Remove useless testdata
...
Signed-off-by: jojohappy <sarahdj0917@gmail.com>
2018-08-02 10:25:28 +08:00
jojohappy
b33f48920c
Fixed remove unused package & fetch golang.org/x/text
...
Signed-off-by: jojohappy <sarahdj0917@gmail.com>
2018-08-02 10:25:28 +08:00
jojohappy
21e50a3f9d
Upgrade k8s client to kubernetes-1.11.0
...
Signed-off-by: jojohappy <sarahdj0917@gmail.com>
2018-08-02 10:25:27 +08:00
Simon Pasquier
1cd29f782c
discovery/consul: close idle connections on stop
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-08-01 17:26:52 +02:00
Brian Brazil
70c98a06f1
Handle empty HELP in text parser. ( #4444 )
...
Fixes #4427
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
2018-08-01 13:29:58 +01:00
Johannes Scheuermann
7608ee87d0
Inital support for Azure VMSS ( #4202 )
...
* Inital support for Azure VMSS
Signed-off-by: Johannes Scheuermann <johannes.scheuermann@inovex.de>
* Add documentation for the newly introduced label
Signed-off-by: Johannes M. Scheuermann <joh.scheuer@gmail.com>
2018-08-01 12:52:21 +01:00
Simon Pasquier
a94450c288
Fix build for openbsd
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-07-31 14:41:30 +02:00
Max Inden
41b0580e7e
Merge pull request #4318 from mxinden/expose-alerts-and-rules
...
api/v1: Expose rules and alerts
2018-07-31 13:50:55 +02:00
Max Leonard Inden
71fafad099
api/v1: Coninue work exposing rules and alerts
...
Signed-off-by: Max Leonard Inden <IndenML@gmail.com>
2018-07-30 15:31:51 +02:00
mg03
31f8ca0dfb
api v1 alerts/rules json endpoint
...
Signed-off-by: mg03 <mgeng03@gmail.com>
2018-07-30 15:29:44 +02:00
Catalin Patulea
50850c0ad9
Add link to TSDB format page. ( #4402 )
...
Signed-off-by: Catalin Patulea <catalinp@google.com>
2018-07-28 08:02:03 +01:00
Benjamin Raskin
9353696d77
Fix spelling and holt-winters check ( #4424 )
...
Signed-off-by: Benjamin Raskin <braskin@uber.com>
2018-07-27 18:17:43 +01:00