blackbox_exporter.git
6 years agoMerge pull request #262 from thz/icmp-src-addr
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)

6 years ago[probers] Allow configuration of source addresses.
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.

6 years agoAdd example with custom CA (#289)
mprasil [Fri, 26 Jan 2018 10:01:06 +0000 (10:01 +0000)]
Add example with custom CA (#289)

6 years agoupdate vendored miekg/dns for Client.Dialer
Tobias Hintze [Fri, 5 Jan 2018 23:56:39 +0000 (00:56 +0100)]
update vendored miekg/dns for Client.Dialer

6 years agoFix HTTP content length metric name (#287)
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.

6 years agoImprove relabel config documentation (#286)
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.

6 years agoFix missing validation of HTTP client configuration (#284)
pasquier-s [Tue, 16 Jan 2018 12:55:51 +0000 (13:55 +0100)]
Fix missing validation of HTTP client configuration (#284)

6 years agoRelease 0.11.0
Brian Brazil [Tue, 28 Nov 2017 13:45:16 +0000 (13:45 +0000)]
Release 0.11.0

6 years agoSetting httpConfig.Body at NewRequest to get Content-Length set impli… (#265)
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)

6 years agoUse net/http, time package constants (#266)
Daniel Swarbrick [Tue, 21 Nov 2017 12:07:04 +0000 (13:07 +0100)]
Use net/http, time package constants (#266)

7 years agoSupport redirects that require cookies plus unit test (#257)
Conor Broderick [Tue, 7 Nov 2017 16:43:25 +0000 (16:43 +0000)]
Support redirects that require cookies plus unit test (#257)

7 years agoFix example comment syntax.
Brian Brazil [Tue, 7 Nov 2017 13:27:50 +0000 (13:27 +0000)]
Fix example comment syntax.

7 years agoAdd httptrace based prober (#215)
Johannes 'fish' Ziemke [Mon, 6 Nov 2017 15:33:56 +0000 (16:33 +0100)]
Add httptrace based prober (#215)

7 years agoUpdate build.
Ben Kochie [Wed, 1 Nov 2017 14:59:49 +0000 (15:59 +0100)]
Update build.

7 years agoWrap DNS lookup metric time defer
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

7 years agoRelease 0.10.0
Brian Brazil [Mon, 9 Oct 2017 13:33:06 +0000 (14:33 +0100)]
Release 0.10.0

7 years agoAdvanced ICMP options (#240)
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>
7 years agoFix memory leak in result history (#238)
Brian Brazil [Thu, 28 Sep 2017 13:24:35 +0000 (14:24 +0100)]
Fix memory leak in result history (#238)

Fixes #236

7 years agoRelease 0.9.1
Brian Brazil [Thu, 21 Sep 2017 13:16:39 +0000 (14:16 +0100)]
Release 0.9.1

7 years agoSet TLS servername from target's host for HTTP probe. (#235)
Brian Brazil [Thu, 21 Sep 2017 13:15:48 +0000 (14:15 +0100)]
Set TLS servername from target's host for HTTP probe. (#235)

7 years agoAdd &debug=true to issue template
Brian Brazil [Wed, 20 Sep 2017 14:16:19 +0000 (15:16 +0100)]
Add &debug=true to issue template

7 years agoRelease 0.9.0
Brian Brazil [Wed, 20 Sep 2017 13:36:37 +0000 (14:36 +0100)]
Release 0.9.0

7 years agoWorkaround netbsd/arm not building.
Brian Brazil [Wed, 20 Sep 2017 13:11:27 +0000 (14:11 +0100)]
Workaround netbsd/arm not building.

7 years agoAllow logs to be viewed more than once
Brian Brazil [Wed, 20 Sep 2017 12:47:22 +0000 (13:47 +0100)]
Allow logs to be viewed more than once

7 years agoAdd new vendored files.
Brian Brazil [Wed, 20 Sep 2017 12:47:44 +0000 (13:47 +0100)]
Add new vendored files.

7 years agoUpdate dependencies.
Brian Brazil [Wed, 20 Sep 2017 12:25:37 +0000 (13:25 +0100)]
Update dependencies.

7 years ago[prober/tcp] get servername for TLS from target (#231)
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.

7 years agoadd tls-upgrade for tcp-prober (STARTTLS) (#220)
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.

7 years agoAdd last 100 probes to the front page, with logs
Brian Brazil [Thu, 14 Sep 2017 14:45:28 +0000 (15:45 +0100)]
Add last 100 probes to the front page, with logs

7 years agoAdd unittest for secrets not being exposed in debug output
Brian Brazil [Tue, 5 Sep 2017 12:58:07 +0000 (13:58 +0100)]
Add unittest for secrets not being exposed in debug output

7 years agoFix http requests to actually use the resolved ip
Brian Brazil [Tue, 5 Sep 2017 12:45:58 +0000 (13:45 +0100)]
Fix http requests to actually use the resolved ip

7 years agoExpand logging for probes.
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.

7 years agoAdd debug url parameter to return debug logs.
Brian Brazil [Mon, 4 Sep 2017 15:23:49 +0000 (16:23 +0100)]
Add debug url parameter to return debug logs.

7 years agoUpdate vendoring for go-kit
Brian Brazil [Mon, 4 Sep 2017 13:24:03 +0000 (14:24 +0100)]
Update vendoring for go-kit

7 years agoSwitch to go-kit for logging
Brian Brazil [Mon, 4 Sep 2017 13:22:47 +0000 (14:22 +0100)]
Switch to go-kit for logging

7 years agoMove prober and config to own package (#214)
Johannes 'fish' Ziemke [Fri, 1 Sep 2017 15:01:22 +0000 (17:01 +0200)]
Move prober and config to own package (#214)

7 years agoMerge pull request #213 from prometheus/bjk/update_build
Brian Brazil [Mon, 28 Aug 2017 16:47:03 +0000 (17:47 +0100)]
Merge pull request #213 from prometheus/bjk/update_build

Update build

7 years agoFix staticcheck errors.
Ben Kochie [Sat, 26 Aug 2017 15:24:50 +0000 (17:24 +0200)]
Fix staticcheck errors.

7 years agoUpdate build templates
Ben Kochie [Sat, 26 Aug 2017 15:12:35 +0000 (17:12 +0200)]
Update build templates

* Update Makefile.
* Update travis config.

7 years agoMerge pull request #139 from leitzler/leitzler-patch-1
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

7 years agoMerge pull request #212 from Conorbro/doc-fix
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

7 years agoFix docs valid_status_codes type
conorbroderick [Thu, 24 Aug 2017 10:28:41 +0000 (11:28 +0100)]
Fix docs valid_status_codes type

7 years agoMerge pull request #209 from Conorbro/bug-fix
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

7 years agoAdded check for empty query name and handle case where targetAddr may 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

7 years agoRelease 0.8.1
Brian Brazil [Tue, 8 Aug 2017 13:38:14 +0000 (14:38 +0100)]
Release 0.8.1

7 years agoMerge pull request #206 from fabianlaule/fix-configflag
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=..)

7 years agoFix wrong config flag name
Fabian Laule [Tue, 8 Aug 2017 13:22:25 +0000 (15:22 +0200)]
Fix wrong config flag name

7 years agoRelease 0.8.0
Brian Brazil [Tue, 8 Aug 2017 13:10:15 +0000 (14:10 +0100)]
Release 0.8.0

7 years agoMerge pull request #204 from Conorbro/bbe-tcp-fix
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

7 years agoFixed timeout bug
conorbroderick [Fri, 4 Aug 2017 11:30:00 +0000 (12:30 +0100)]
Fixed timeout bug

7 years agoMerge pull request #198 from prometheus/superq/readme
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

7 years agoMerge branch 'master' into superq/readme
Brian Brazil [Tue, 1 Aug 2017 11:44:02 +0000 (12:44 +0100)]
Merge branch 'master' into superq/readme

7 years agoFix logging flags (#201)
Calle Pettersson [Mon, 31 Jul 2017 19:49:52 +0000 (21:49 +0200)]
Fix logging flags (#201)

Update with new common/log

7 years agoChange to Kingpin flags (#199)
Calle Pettersson [Wed, 26 Jul 2017 09:27:04 +0000 (11:27 +0200)]
Change to Kingpin flags (#199)

7 years agoAdd large link to config docs
Ben Kochie [Thu, 20 Jul 2017 09:13:42 +0000 (11:13 +0200)]
Add large link to config docs

Make the Configuration section header link to the configuration doc.
* Use relative link[0].

[0]: https://help.github.com/articles/about-readmes/#relative-links-and-image-paths-in-readme-files

7 years agoAdd an issue template. (#197)
Ben Kochie [Thu, 20 Jul 2017 09:09:06 +0000 (11:09 +0200)]
Add an issue template. (#197)

7 years agodoc: Rename protocol to transport_protocol (#195)
Sebastien Badia [Mon, 17 Jul 2017 10:16:00 +0000 (12:16 +0200)]
doc: Rename protocol to transport_protocol (#195)

Error parsing config file: unknown fields in dns probe: protocol

7 years agoRelease 0.7.0
Brian Brazil [Fri, 14 Jul 2017 14:36:32 +0000 (15:36 +0100)]
Release 0.7.0

7 years agoHandle timeout header being missing (#193)
Brian Brazil [Fri, 14 Jul 2017 10:44:58 +0000 (11:44 +0100)]
Handle timeout header being missing (#193)

7 years agoAdded test for tcp timeout (#192)
Conor Broderick [Wed, 12 Jul 2017 16:09:59 +0000 (17:09 +0100)]
Added test for tcp timeout (#192)

7 years agoAdded metric for http/tcp regex match (#191)
Conor Broderick [Wed, 12 Jul 2017 13:31:37 +0000 (14:31 +0100)]
Added metric for http/tcp regex match (#191)

7 years agoAdded timeout to blackbox exporter (#181)
Conor Broderick [Wed, 12 Jul 2017 10:41:46 +0000 (11:41 +0100)]
Added timeout to blackbox exporter (#181)

7 years agoExpose HTTP version of probe (#189)
Conor Broderick [Tue, 11 Jul 2017 16:14:07 +0000 (17:14 +0100)]
Expose HTTP version of probe (#189)

7 years agoExpose loaded blackbox configuration on /config (#185)
Conor Broderick [Tue, 11 Jul 2017 13:58:36 +0000 (14:58 +0100)]
Expose loaded blackbox configuration on /config (#185)

7 years agoLog tcp errors (#188)
Conor Broderick [Mon, 10 Jul 2017 16:14:06 +0000 (17:14 +0100)]
Log tcp errors (#188)

7 years agoMerge pull request #187 from prometheus/bjk/cookie_vendor
Ben Kochie [Mon, 10 Jul 2017 16:12:55 +0000 (18:12 +0200)]
Merge pull request #187 from prometheus/bjk/cookie_vendor

Add vendor golang.org/x/net/publicsuffix

7 years agoAdd vendor golang.org/x/net/publicsuffix
Ben Kochie [Mon, 10 Jul 2017 15:57:21 +0000 (17:57 +0200)]
Add vendor golang.org/x/net/publicsuffix

Add vendor golang.org/x/net/publicsuffix and dependencies.

7 years agoFix broken Links in README (#183)
Johannes Visintini [Thu, 6 Jul 2017 13:22:33 +0000 (15:22 +0200)]
Fix broken Links in README (#183)

The former links resulted to errors from github.

7 years agoEnsure duration of lookup is set if ip resolution fails (#180)
Conor Broderick [Tue, 4 Jul 2017 11:53:41 +0000 (12:53 +0100)]
Ensure duration of lookup is set if ip resolution fails (#180)

7 years agoupdated docs for blackbox exporter (#177)
Conor Broderick [Mon, 3 Jul 2017 14:58:18 +0000 (15:58 +0100)]
updated docs for blackbox exporter (#177)

7 years agoVendor golang.org/x/sys/windows
Brian Brazil [Mon, 3 Jul 2017 13:54:41 +0000 (14:54 +0100)]
Vendor golang.org/x/sys/windows

7 years agoVersion 0.5.0
Brian Brazil [Wed, 3 May 2017 10:46:30 +0000 (11:46 +0100)]
Version 0.5.0

7 years agoadded checkOverflow to config (#179)
Conor Broderick [Mon, 3 Jul 2017 13:27:09 +0000 (14:27 +0100)]
added checkOverflow to config (#179)

7 years agoUse HTTP auth in blackbox exporter (#173)
Conor Broderick [Thu, 29 Jun 2017 10:57:16 +0000 (11:57 +0100)]
Use HTTP auth in blackbox exporter (#173)

7 years agologrus vendoring
conorbroderick [Tue, 27 Jun 2017 12:17:47 +0000 (13:17 +0100)]
logrus vendoring

7 years agoUpdated vendoring for inclusion of http auth
conorbroderick [Fri, 23 Jun 2017 14:12:28 +0000 (15:12 +0100)]
Updated vendoring for inclusion of http auth

7 years agoSet default port of 53 if not specified for DNS target (#169)
Conor Broderick [Wed, 21 Jun 2017 14:37:14 +0000 (15:37 +0100)]
Set default port of 53 if not specified for DNS target (#169)

7 years agoWe do v6 for icmp now too
Brian Brazil [Fri, 16 Jun 2017 19:17:01 +0000 (20:17 +0100)]
We do v6 for icmp now too

7 years agoFactor out common resolution logic
Conor Broderick [Wed, 14 Jun 2017 15:48:27 +0000 (16:48 +0100)]
Factor out common resolution logic

Have common metrics and configuration for protocol selection.

This changes the config file format.

7 years agoRegister probeSSLEarliestCertExpiryGauge
Kai Blin [Tue, 6 Jun 2017 09:37:24 +0000 (11:37 +0200)]
Register probeSSLEarliestCertExpiryGauge

This makes the gauge show up in the probe output when a TLS endpoint is
probed.

Signed-off-by: Kai Blin <kblin@biosustain.dtu.dk>
7 years agoImprove example prometheus.yml config
Ben Kochie [Tue, 30 May 2017 08:01:12 +0000 (10:01 +0200)]
Improve example prometheus.yml config

To reduce confusion about how to use http probes, simplify the `http_2xx` probe example.
* Make the example use full URLs for targets.
* Remove relabel config params that are defaults.

7 years agoAdded utility methods for checking probe results
conorbroderick [Wed, 17 May 2017 15:41:53 +0000 (16:41 +0100)]
Added utility methods for checking probe results

7 years agoSwitch from handling output by hand to using a custom registry
conorbroderick [Mon, 15 May 2017 13:10:46 +0000 (14:10 +0100)]
Switch from handling output by hand to using a custom registry

7 years agoUpdated vendoring for blackbox_exporter
conorbroderick [Mon, 15 May 2017 12:17:55 +0000 (13:17 +0100)]
Updated vendoring for blackbox_exporter

7 years agoAdd mention of probe_success
Brian Brazil [Wed, 17 May 2017 07:57:33 +0000 (08:57 +0100)]
Add mention of probe_success

7 years agoGo 1.8 do not require env GOPATH to be set and make will fail if it isn't set.
Pontus Leitzler [Thu, 27 Apr 2017 12:32:54 +0000 (14:32 +0200)]
Go 1.8 do not require env GOPATH to be set and make will fail if it isn't set.

7 years agoImplement reloadable config (#136)
colstuwjx [Fri, 21 Apr 2017 11:11:14 +0000 (19:11 +0800)]
Implement reloadable config (#136)

Add reloadConfig to support hot-reload by SIGHUP.

Add /reload POST endpoint to hot-reload config.

7 years agoCreate sha256 checksums file during release (#133)
Tobias Schmidt [Wed, 19 Apr 2017 14:58:08 +0000 (16:58 +0200)]
Create sha256 checksums file during release (#133)

7 years agoMerge pull request #124 from prometheus/grobie/consolidate-log-levels
Brian Brazil [Sat, 4 Mar 2017 15:27:20 +0000 (15:27 +0000)]
Merge pull request #124 from prometheus/grobie/consolidate-log-levels

Use warn level for log messages about target communication errors

7 years agoUse warn level for log messages about target communication errors
Tobias Schmidt [Sat, 4 Mar 2017 14:55:15 +0000 (10:55 -0400)]
Use warn level for log messages about target communication errors

7 years agoMerge pull request #123 from prometheus/grobie/fix-lint
Brian Brazil [Sat, 4 Mar 2017 11:42:09 +0000 (11:42 +0000)]
Merge pull request #123 from prometheus/grobie/fix-lint

Fix go linter issues and simplify code

7 years agoSupport offline build
Tobias Schmidt [Sat, 4 Mar 2017 03:36:25 +0000 (23:36 -0400)]
Support offline build

Don't reinstall promu if it is already available.

7 years agoFix go linter issues and simplify code
Tobias Schmidt [Sat, 4 Mar 2017 03:35:45 +0000 (23:35 -0400)]
Fix go linter issues and simplify code

7 years agoFix code formatting (#120)
Tobias Schmidt [Sat, 4 Mar 2017 02:52:29 +0000 (22:52 -0400)]
Fix code formatting (#120)

* Fix code formatting

* Ensure CI fails on unformatted code

7 years agoadd prober_dns_lookup_time_seconds metric to solve #60 (#118)
aparcar [Thu, 2 Mar 2017 00:45:51 +0000 (01:45 +0100)]
add prober_dns_lookup_time_seconds metric to solve #60 (#118)

add probe_dns_lookup_time_seconds metric

7 years agoReplace AUTHORS.md by an updated MAINTAINERS.md (#112)
Björn Rabenstein [Thu, 16 Feb 2017 17:49:25 +0000 (18:49 +0100)]
Replace AUTHORS.md by an updated MAINTAINERS.md (#112)

7 years agoFix trivial tyop (#107)
Matt Titmus [Fri, 27 Jan 2017 19:47:59 +0000 (14:47 -0500)]
Fix trivial tyop (#107)

7 years agoFix panic in ICMP on DNS lookup failure (#106)
loverend [Fri, 27 Jan 2017 17:11:41 +0000 (17:11 +0000)]
Fix panic in ICMP on DNS lookup failure (#106)

Panic:

    ERRO[0003] Error resolving address bbc.co.uk: no suitable address found
    source="icmp.go:81"
    2017/01/27 16:40:42 http: panic serving 127.0.0.1:57487: runtime error:
    invalid memory address or nil pointer dereference
    goroutine 12 [running]:
    net/http.(*conn).serve.func1(0xc420086700)
     /usr/local/go/src/net/http/server.go:1491 +0x12a
    panic(0x84e600, 0xc4200100e0)
     /usr/local/go/src/runtime/panic.go:458 +0x243
    main.probeICMP(0xc420017752, 0x9, 0xabc7c0, 0xc4200f0d00, 0xc4200f64e8,
    0x4, 0x12a05f200, 0x0, 0x0, 0x0, ...)
     /home/luke/git/blackbox_exporter/icmp.go:84 +0x1fc
    main.probeHandler(0xabc7c0, 0xc4200f0d00, 0xc42001c1e0, 0xc420030090)
     /home/luke/git/blackbox_exporter/main.go:130 +0x218
    main.main.func1(0xabc7c0, 0xc4200f0d00, 0xc42001c1e0)
     /home/luke/git/blackbox_exporter/main.go:170 +0x4a
    net/http.HandlerFunc.ServeHTTP(0xc4200f7010, 0xabc7c0, 0xc4200f0d00,
    0xc42001c1e0)
     /usr/local/go/src/net/http/server.go:1726 +0x44
    net/http.(*ServeMux).ServeHTTP(0xadd3c0, 0xabc7c0, 0xc4200f0d00,
    0xc42001c1e0)
     /usr/local/go/src/net/http/server.go:2022 +0x7f
    net/http.serverHandler.ServeHTTP(0xc420086680, 0xabc7c0, 0xc4200f0d00,
    0xc42001c1e0)
     /usr/local/go/src/net/http/server.go:2202 +0x7d
    net/http.(*conn).serve(0xc420086700, 0xabd140, 0xc4200173c0)
     /usr/local/go/src/net/http/server.go:1579 +0x4b7
    created by net/http.(*Server).Serve
     /usr/local/go/src/net/http/server.go:2293 +0x44d

7 years agoFix 'socker' typo (#104)
Matt Bostock [Wed, 25 Jan 2017 18:47:14 +0000 (18:47 +0000)]
Fix 'socker' typo (#104)

`socker` should be `socket`.

7 years agoBump to version 0.4.0
Brian Brazil [Thu, 12 Jan 2017 15:20:07 +0000 (15:20 +0000)]
Bump to version 0.4.0