Peter Gallerani [Wed, 27 Mar 2019 16:00:28 +0000 (10:00 -0600)]
Handle SIGTERM gracefully (#449)
Fixes #447
Signed-off-by: silentpete <peter.gallerani@gmail.com>
Daniel Caballero [Wed, 27 Mar 2019 11:22:48 +0000 (12:22 +0100)]
separating build and run instructions, so users can just download the released software (#452)
Signed-off-by: Daniel Caballero <dani.caba@gmail.com>
Peter Gallerani [Wed, 27 Mar 2019 09:04:41 +0000 (03:04 -0600)]
add license information to missing Go files (resolves #448) (#450)
Signed-off-by: silentpete <peter.gallerani@gmail.com>
Ben Kochie [Tue, 26 Mar 2019 16:33:08 +0000 (17:33 +0100)]
Merge pull request #446 from silentpete/issue-352
#352 - swap MAINTAINER for LABEL
silentpete [Tue, 26 Mar 2019 15:32:07 +0000 (09:32 -0600)]
#352 - swap MAINTAINER for LABEL
Signed-off-by: silentpete <peter.gallerani@gmail.com>
Brian Brazil [Fri, 15 Mar 2019 13:18:47 +0000 (13:18 +0000)]
Release 0.14.0
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Brian Brazil [Thu, 14 Mar 2019 16:39:35 +0000 (16:39 +0000)]
Empty in YAML means null. (#440)
The null then overrides the default config. Avoid this
in the example config file.
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Pascal Gauthier [Thu, 14 Mar 2019 14:21:37 +0000 (10:21 -0400)]
Fix ip_protocol_fallback default value (#436)
Fix for https://github.com/prometheus/blackbox_exporter/issues/424
Also fix an undefined probeIPProtocolGauge in case of no IP found.
Signed-off-by: Pascal Gauthier <pgauthier@nihilisme.ca>
Gleb Smirnov [Thu, 21 Feb 2019 13:28:52 +0000 (21:28 +0800)]
Add regexp matching of HTTP response headers to the http probe (#419)
Signed-off-by: Gleb Smirnov <me@gvsmirnov.ru>
Ryan [Mon, 4 Feb 2019 14:01:27 +0000 (09:01 -0500)]
Add metric successful_config_load (#413)
Signed-off-by: Ryan Shatford <ryan.shatford@tapad.com>
Benoît Knecht [Wed, 30 Jan 2019 10:57:57 +0000 (11:57 +0100)]
prober: icmp: Initialize ID and sequence to random values (#412)
This should help preventing issues with some network devices that have
trouble NATing ICMP packets with the same ID and sequence nubmer but a
different source IP address.
Currently, this can happen if the blackbox_exporter runs in a container
(the ID is set to the PID, which is typically 1 in a container), and
serveral blackbox_exporters are restarted at the same time (the sequence
numbers are reset to zero and stay in sync).
This commit sets the ICMP echo ID to a random value if the PID is 1, and
initializes the sequence number at a random offset.
See #411 for details.
Signed-off-by: Benoît Knecht <benoit.knecht@fsfe.org>
Johannes Visintini [Thu, 17 Jan 2019 10:00:43 +0000 (11:00 +0100)]
Implemented Last-Modified HTTP header metric (#407)
This feature returns a probe_http_last_modified metric with the content
of the Last-Modified HTTP response header, if it is set by the server.
Signed-off-by: Johannes Visintini <johannes.visintini@uni-heidelberg.de>
Simon Pasquier [Mon, 7 Jan 2019 10:30:57 +0000 (11:30 +0100)]
*: update Makefile.common with new staticcheck (#404)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Simon Pasquier [Tue, 18 Dec 2018 10:18:50 +0000 (11:18 +0100)]
Merge pull request #397 from simonpasquier/fix-go1.11.4-build
Fix go.sum after Go1.11.4 bump
Simon Pasquier [Mon, 17 Dec 2018 10:07:41 +0000 (11:07 +0100)]
Fix go.sum after Go1.11.4 bump
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Pascal Gauthier [Fri, 7 Dec 2018 15:20:36 +0000 (10:20 -0500)]
Add force preferred ip protocol (#382)
Signed-off-by: Pascal Gauthier <pgauthier@nihilisme.ca>
Brian Brazil [Tue, 4 Dec 2018 15:05:47 +0000 (15:05 +0000)]
Release 0.13.0
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Ben Kochie [Thu, 29 Nov 2018 10:33:32 +0000 (11:33 +0100)]
Merge pull request #387 from simonpasquier/fix-promu-cfg
promu: fix ldflags for Go modules
Simon Pasquier [Thu, 29 Nov 2018 10:00:54 +0000 (11:00 +0100)]
promu: fix ldflags for Go modules
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Ben Kochie [Wed, 28 Nov 2018 11:34:38 +0000 (12:34 +0100)]
Merge pull request #386 from simonpasquier/go-modules
*: support for Go modules
Simon Pasquier [Wed, 28 Nov 2018 10:54:37 +0000 (11:54 +0100)]
Fix typo
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Simon Pasquier [Mon, 26 Nov 2018 14:50:53 +0000 (15:50 +0100)]
*: support for Go modules
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Simon Pasquier [Tue, 27 Nov 2018 09:08:28 +0000 (10:08 +0100)]
circleci: switch to 2.1 config (#385)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Brian Brazil [Wed, 14 Nov 2018 18:00:11 +0000 (18:00 +0000)]
Signal channel should have a buffer of 1. (#381)
Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
Ben Kochie [Mon, 15 Oct 2018 16:29:25 +0000 (18:29 +0200)]
Update vendor github.com/prometheus/client_golang/...@v0.9.0 (#372)
Signed-off-by: Ben Kochie <superq@gmail.com>
Ivan Babrou [Thu, 4 Oct 2018 10:59:29 +0000 (03:59 -0700)]
Account response read time for http prober (#363)
Withot this change `transfer` time is near zero, because `trace.end`
time is clocked when response body is available, not when it's read.
Signed-off-by: Ivan Babrou <ibobrik@gmail.com>
Ben Kochie [Thu, 27 Sep 2018 19:31:54 +0000 (21:31 +0200)]
Update CircleCI to Go 1.11 (#367)
Signed-off-by: Ben Kochie <superq@gmail.com>
Ben Kochie [Thu, 27 Sep 2018 19:28:56 +0000 (21:28 +0200)]
Merge pull request #362 from bobrik/fix-broken-build
Fix broken build because of go fmt issue
Ivan Babrou [Thu, 27 Sep 2018 17:31:29 +0000 (10:31 -0700)]
Upgrade go10 to go11 in travis
Signed-off-by: Ivan Babrou <ibobrik@gmail.com>
Ivan Babrou [Tue, 25 Sep 2018 18:54:33 +0000 (11:54 -0700)]
Fix broken build because of go fmt issue
```
$ make
>> checking code style
! gofmt -d $(find . -path ./vendor -prune -o -name '*.go' -print) | grep '^'
diff -u ./prober/utils_test.go.orig ./prober/utils_test.go
--- ./prober/utils_test.go.orig 2018-09-25 11:52:34.
000000000 -0700
+++ ./prober/utils_test.go 2018-09-25 11:52:34.
000000000 -0700
@@ -43,7 +43,7 @@
publickey := &privatekey.PublicKey
cert := x509.Certificate{
- IsCA: true,
+ IsCA: true,
BasicConstraintsValid: true,
SubjectKeyId: []byte{1},
SerialNumber: big.NewInt(1),
make: *** [style] Error 1
```
Signed-off-by: Ivan Babrou <ibobrik@gmail.com>
Thomas Maier [Tue, 14 Aug 2018 14:38:07 +0000 (16:38 +0200)]
ensure resp.Body is discarded to avoid broken tcp sockets (#348)
Signed-off-by: Thomas Maier <contact@thomas-maier.net>
Ben Kochie [Tue, 24 Jul 2018 20:12:14 +0000 (22:12 +0200)]
Add ICMP duration metrics (#346)
* Add ICMP duration metrics
Add a gauge to measure various parts of the ICMP probe.
Signed-off-by: Ben Kochie <superq@gmail.com>
* Update travis config
Update travis config to match upstream prometheus.
Signed-off-by: Ben Kochie <superq@gmail.com>
Ask Bjørn Hansen [Wed, 13 Jun 2018 06:41:52 +0000 (23:41 -0700)]
[dns] Add serial number metric for dns soa queries (#333)
Signed-off-by: Ask Bjørn Hansen <ask@develooper.com>
Arsène von Wyss [Wed, 6 Jun 2018 12:54:38 +0000 (14:54 +0200)]
For ICMP, only use RawConn for the Don't Fagment case (#329)
Signed-off-by: Arsène von Wyss <avw@gmx.ch>
Simon Pasquier [Wed, 23 May 2018 09:55:52 +0000 (11:55 +0200)]
Fix CircleCI for releases (#323)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Simon Pasquier [Wed, 23 May 2018 09:18:45 +0000 (11:18 +0200)]
Update CircleCI build (#318)
* Update CircleCI build
This change upgrades the build configuration to CircleCI 2.0.
* Use machine executor for IPv6 tests
* Fix working directory for test
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Simon Pasquier [Tue, 22 May 2018 09:44:41 +0000 (11:44 +0200)]
Use Makefile.common from Prometheus
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Simon Pasquier [Thu, 3 May 2018 15:20:17 +0000 (17:20 +0200)]
prober: fix data races
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Simon Pasquier [Tue, 22 May 2018 09:44:03 +0000 (11:44 +0200)]
vendor: remove unused dependencies
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Manos Fokas [Mon, 16 Apr 2018 08:05:24 +0000 (11:05 +0300)]
Implemented strict yaml unmarshalling. (#310)
Signed-off-by: manosf <manosf@protonmail.com>
sgmitchell [Fri, 13 Apr 2018 18:57:07 +0000 (14:57 -0400)]
Make the history limit a configurable flag (#308)
Dmitriy Lukyanchikov [Sun, 1 Apr 2018 09:20:41 +0000 (12:20 +0300)]
Add config validation option (#306)
Brian Brazil [Tue, 27 Feb 2018 11:41:31 +0000 (11:41 +0000)]
Release 0.12.0
Brian Brazil [Tue, 27 Feb 2018 11:38:42 +0000 (11:38 +0000)]
Merge pull request #297 from prometheus/fix-travis
Fix text failures on travis
Brian Brazil [Tue, 27 Feb 2018 11:16:22 +0000 (11:16 +0000)]
Fix text failures on travis
Brian Brazil [Mon, 26 Feb 2018 10:39:07 +0000 (10:39 +0000)]
Switch travis to 1.10 also
Brian Brazil [Mon, 26 Feb 2018 10:38:27 +0000 (10:38 +0000)]
Switch to go 1.10
Brian Brazil [Fri, 26 Jan 2018 11:51:28 +0000 (11:51 +0000)]
Merge pull request #262 from thz/icmp-src-addr
allow specification of source address for probes (icmp, tcp, dns)
Tobias Hintze [Wed, 15 Nov 2017 23:50:06 +0000 (00:50 +0100)]
[probers] Allow configuration of source addresses.
This adds the configuration option source_ip_address
to modules ICMP, TCP and DNS which changes the
probe's local address.
mprasil [Fri, 26 Jan 2018 10:01:06 +0000 (10:01 +0000)]
Add example with custom CA (#289)
Tobias Hintze [Fri, 5 Jan 2018 23:56:39 +0000 (00:56 +0100)]
update vendored miekg/dns for Client.Dialer
Julius Volz [Sat, 20 Jan 2018 13:44:31 +0000 (14:44 +0100)]
Fix HTTP content length metric name (#287)
This got broken as part of introducing the Prometheus client library for
metrics exposure in
7abdf0570d44cc8dbd258987e9d3353af1d6126e.
Ben Kochie [Thu, 18 Jan 2018 16:17:02 +0000 (17:17 +0100)]
Improve relabel config documentation (#286)
Improve the clarity of how to use the relabel config to adjust the
blackbox exporter target.
pasquier-s [Tue, 16 Jan 2018 12:55:51 +0000 (13:55 +0100)]
Fix missing validation of HTTP client configuration (#284)
Brian Brazil [Tue, 28 Nov 2017 13:45:16 +0000 (13:45 +0000)]
Release 0.11.0
Eric K Lee [Tue, 21 Nov 2017 19:00:01 +0000 (11:00 -0800)]
Setting httpConfig.Body at NewRequest to get Content-Length set impli… (#265)
Daniel Swarbrick [Tue, 21 Nov 2017 12:07:04 +0000 (13:07 +0100)]
Use net/http, time package constants (#266)
Conor Broderick [Tue, 7 Nov 2017 16:43:25 +0000 (16:43 +0000)]
Support redirects that require cookies plus unit test (#257)
Brian Brazil [Tue, 7 Nov 2017 13:27:50 +0000 (13:27 +0000)]
Fix example comment syntax.
Johannes 'fish' Ziemke [Mon, 6 Nov 2017 15:33:56 +0000 (16:33 +0100)]
Add httptrace based prober (#215)
Ben Kochie [Wed, 1 Nov 2017 14:59:49 +0000 (15:59 +0100)]
Update build.
Ben Kochie [Mon, 30 Oct 2017 15:51:58 +0000 (16:51 +0100)]
Wrap DNS lookup metric time defer
Wrap the DNS lookup time `defer` in an anonymous function to avoid
arguments being evaluated early.
Closes: https://github.com/prometheus/blackbox_exporter/issues/253
Brian Brazil [Mon, 9 Oct 2017 13:33:06 +0000 (14:33 +0100)]
Release 0.10.0
Goutham Veeramachaneni [Fri, 6 Oct 2017 10:33:46 +0000 (16:03 +0530)]
Advanced ICMP options (#240)
Add payload to ICMP Probe
Add the option to send packets with DF-Bit set.
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
Brian Brazil [Thu, 28 Sep 2017 13:24:35 +0000 (14:24 +0100)]
Fix memory leak in result history (#238)
Fixes #236
Brian Brazil [Thu, 21 Sep 2017 13:16:39 +0000 (14:16 +0100)]
Release 0.9.1
Brian Brazil [Thu, 21 Sep 2017 13:15:48 +0000 (14:15 +0100)]
Set TLS servername from target's host for HTTP probe. (#235)
Brian Brazil [Wed, 20 Sep 2017 14:16:19 +0000 (15:16 +0100)]
Add &debug=true to issue template
Brian Brazil [Wed, 20 Sep 2017 13:36:37 +0000 (14:36 +0100)]
Release 0.9.0
Brian Brazil [Wed, 20 Sep 2017 13:11:27 +0000 (14:11 +0100)]
Workaround netbsd/arm not building.
Brian Brazil [Wed, 20 Sep 2017 12:47:22 +0000 (13:47 +0100)]
Allow logs to be viewed more than once
Brian Brazil [Wed, 20 Sep 2017 12:47:44 +0000 (13:47 +0100)]
Add new vendored files.
Brian Brazil [Wed, 20 Sep 2017 12:25:37 +0000 (13:25 +0100)]
Update dependencies.
Tobias Hintze [Wed, 20 Sep 2017 10:22:49 +0000 (12:22 +0200)]
[prober/tcp] get servername for TLS from target (#231)
Because dialTCP manually resolves name to IP, the
actual tls.DialWithDialer call cannot deduce the name
from the target. This changes puts the "lost" name
into tlsConfig to fix certficate name verification.
Tests are also added which fail without and succeed
with this change.
Tobias Hintze [Mon, 18 Sep 2017 12:55:28 +0000 (14:55 +0200)]
add tls-upgrade for tcp-prober (STARTTLS) (#220)
Improves query_response by adding starttls
which upgrades the connection to TLS.
This allows probing STARTTLS on IMAP/SMTP/POP3.
Brian Brazil [Thu, 14 Sep 2017 14:45:28 +0000 (15:45 +0100)]
Add last 100 probes to the front page, with logs
Brian Brazil [Tue, 5 Sep 2017 12:58:07 +0000 (13:58 +0100)]
Add unittest for secrets not being exposed in debug output
Brian Brazil [Tue, 5 Sep 2017 12:45:58 +0000 (13:45 +0100)]
Fix http requests to actually use the resolved ip
Brian Brazil [Mon, 4 Sep 2017 16:51:41 +0000 (17:51 +0100)]
Expand logging for probes.
Now that we have somewhere to put logs other
than the general application logs, we can provide
much more information.
Brian Brazil [Mon, 4 Sep 2017 15:23:49 +0000 (16:23 +0100)]
Add debug url parameter to return debug logs.
Brian Brazil [Mon, 4 Sep 2017 13:24:03 +0000 (14:24 +0100)]
Update vendoring for go-kit
Brian Brazil [Mon, 4 Sep 2017 13:22:47 +0000 (14:22 +0100)]
Switch to go-kit for logging
Johannes 'fish' Ziemke [Fri, 1 Sep 2017 15:01:22 +0000 (17:01 +0200)]
Move prober and config to own package (#214)
Brian Brazil [Mon, 28 Aug 2017 16:47:03 +0000 (17:47 +0100)]
Merge pull request #213 from prometheus/bjk/update_build
Update build
Ben Kochie [Sat, 26 Aug 2017 15:24:50 +0000 (17:24 +0200)]
Fix staticcheck errors.
Ben Kochie [Sat, 26 Aug 2017 15:12:35 +0000 (17:12 +0200)]
Update build templates
* Update Makefile.
* Update travis config.
Ben Kochie [Sat, 26 Aug 2017 15:02:28 +0000 (17:02 +0200)]
Merge pull request #139 from leitzler/leitzler-patch-1
Use go env to fetch GOPATH to support Go 1.8
Brian Brazil [Thu, 24 Aug 2017 10:34:46 +0000 (11:34 +0100)]
Merge pull request #212 from Conorbro/doc-fix
Fix docs http valid_status_codes type
conorbroderick [Thu, 24 Aug 2017 10:28:41 +0000 (11:28 +0100)]
Fix docs valid_status_codes type
Brian Brazil [Mon, 14 Aug 2017 13:35:16 +0000 (14:35 +0100)]
Merge pull request #209 from Conorbro/bug-fix
Added check for empty query_name and where targetAddr may be empty
conorbroderick [Mon, 14 Aug 2017 11:51:22 +0000 (12:51 +0100)]
Added check for empty query name and handle case where targetAddr may empty
Brian Brazil [Tue, 8 Aug 2017 13:38:14 +0000 (14:38 +0100)]
Release 0.8.1
Tobias Schmidt [Tue, 8 Aug 2017 13:35:35 +0000 (15:35 +0200)]
Merge pull request #206 from fabianlaule/fix-configflag
Fix wrong config flag name in 0.8.0 (--config-flag=..)
Fabian Laule [Tue, 8 Aug 2017 13:22:25 +0000 (15:22 +0200)]
Fix wrong config flag name
Brian Brazil [Tue, 8 Aug 2017 13:10:15 +0000 (14:10 +0100)]
Release 0.8.0
Brian Brazil [Fri, 4 Aug 2017 12:13:31 +0000 (13:13 +0100)]
Merge pull request #204 from Conorbro/bbe-tcp-fix
Fixed timeout bug
conorbroderick [Fri, 4 Aug 2017 11:30:00 +0000 (12:30 +0100)]
Fixed timeout bug
Brian Brazil [Tue, 1 Aug 2017 11:45:03 +0000 (12:45 +0100)]
Merge pull request #198 from prometheus/superq/readme
Add large link to config docs
Brian Brazil [Tue, 1 Aug 2017 11:44:02 +0000 (12:44 +0100)]
Merge branch 'master' into superq/readme
Calle Pettersson [Mon, 31 Jul 2017 19:49:52 +0000 (21:49 +0200)]
Fix logging flags (#201)
Update with new common/log