blackbox_exporter.git
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 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

7 years agoDisable http keepalive to fix accept4: too many open files (#100)
pj42 [Wed, 11 Jan 2017 10:14:30 +0000 (10:14 +0000)]
Disable http keepalive to fix accept4: too many open files (#100)

7 years agoAdded support for http proxy environment variables (#92)
pj42 [Wed, 4 Jan 2017 10:26:29 +0000 (10:26 +0000)]
Added support for http proxy environment variables (#92)

7 years agoFix vet and lint issues (#88)
Tristan Colgate-McFarlane [Thu, 15 Dec 2016 10:42:02 +0000 (10:42 +0000)]
Fix vet and lint issues (#88)

7 years agoadd syntax highlighting in README.md (#87)
Bruno Bigras [Thu, 8 Dec 2016 22:19:26 +0000 (17:19 -0500)]
add syntax highlighting in README.md (#87)

7 years agoAdded support for posting a body of content (#86)
Andrew Hemming [Wed, 7 Dec 2016 15:13:15 +0000 (15:13 +0000)]
Added support for posting a body of content (#86)

8 years agoGo to version 0.3.0
Brian Brazil [Mon, 7 Nov 2016 12:38:45 +0000 (12:38 +0000)]
Go to version 0.3.0

8 years agoCleanup provided and example config.
Brian Brazil [Mon, 7 Nov 2016 12:34:32 +0000 (12:34 +0000)]
Cleanup provided and example config.

Expand provided config, make sure all modules are usable.
Minimise example config so it's just enough to show all options.

Fixes #71

8 years agoAdd scheme before attempting URL parsing. (#75)
Brian Brazil [Sat, 5 Nov 2016 12:12:27 +0000 (12:12 +0000)]
Add scheme before attempting URL parsing. (#75)

The url parsing is treating URLs without schemes
as paths rather than hosts.

8 years agoIPv6 support for all modules (#64)
Hasso Tepper [Fri, 30 Sep 2016 16:29:52 +0000 (19:29 +0300)]
IPv6 support for all modules (#64)

* IPv6 and IP protocol preferrence support for all modules

Introduce protocol field for every module which can be used to force
probe to IPv4 (tcp4/udp4/icmp4) or IPv6 (tcp6/udp6/icmp6). In case
of tcp/udp/icmp both can be used in order of preferrence. IPv6 is
preferred by default, but it can be tuned with 'preferred_ip_protocol'
parameter.

Default for all modules is an automatic selection with IPv6 preferred.

ICMP code is mostly from Michael Stapelberg.

* Document protocol and preferred_ip_protocol parameters

* Protocol tests for DNS and TCP modules

8 years agohttp: implement TLS and InsecureSkipVerify (#58)
Gerhard Lausser [Sat, 10 Sep 2016 17:42:31 +0000 (19:42 +0200)]
http: implement TLS and InsecureSkipVerify (#58)

8 years agoMerge pull request #63 from prometheus/sdurrheimer-circle-use-base-image-for-tests
Steve Durrheimer [Fri, 9 Sep 2016 08:14:10 +0000 (10:14 +0200)]
Merge pull request #63 from prometheus/sdurrheimer-circle-use-base-image-for-tests

Use golang-builder base image for tests in CircleCI

8 years agoUse golang-builder base image for tests in CircleCI
Steve Durrheimer [Fri, 9 Sep 2016 06:29:47 +0000 (08:29 +0200)]
Use golang-builder base image for tests in CircleCI

8 years agoMerge pull request #61 from prometheus/sdurrheimer-use-promu-default-go-version
Steve Durrheimer [Wed, 31 Aug 2016 13:12:03 +0000 (15:12 +0200)]
Merge pull request #61 from prometheus/sdurrheimer-use-promu-default-go-version

Use promu default go version + use 1.6 tag for cicleci tests

8 years agoUse promu default go version + use 1.6 tag for cicleci tests
Steve Durrheimer [Tue, 30 Aug 2016 07:37:25 +0000 (09:37 +0200)]
Use promu default go version + use 1.6 tag for cicleci tests

8 years agoFix version
Brian Brazil [Sat, 16 Jul 2016 15:56:00 +0000 (16:56 +0100)]
Fix version

8 years agoPrepare for 0.2.0 release
Brian Brazil [Sat, 16 Jul 2016 15:31:13 +0000 (16:31 +0100)]
Prepare for 0.2.0 release

8 years agoMerge pull request #48 from prometheus/grobie/use-static-configs
Steve Durrheimer [Wed, 13 Jul 2016 06:02:11 +0000 (08:02 +0200)]
Merge pull request #48 from prometheus/grobie/use-static-configs

Rename target_groups to static_configs

8 years agoRename target_groups to static_configs
Tobias Schmidt [Wed, 13 Jul 2016 00:58:38 +0000 (18:58 -0600)]
Rename target_groups to static_configs

8 years agoMerge pull request #44 from knyar/dns
Brian Brazil [Wed, 29 Jun 2016 00:24:29 +0000 (01:24 +0100)]
Merge pull request #44 from knyar/dns

Add DNS support (fix #25)

8 years agoAdd DNS support (fix #25)
Anton Tolchanov [Mon, 27 Jun 2016 20:11:13 +0000 (23:11 +0300)]
Add DNS support (fix #25)

8 years agoAdd github.com/miekg/dns to vendor
Anton Tolchanov [Mon, 27 Jun 2016 20:25:19 +0000 (23:25 +0300)]
Add github.com/miekg/dns to vendor

8 years agoMerge pull request #40 from lae/docs/icmp-does-not-require-root
Brian Brazil [Tue, 31 May 2016 23:35:14 +0000 (00:35 +0100)]
Merge pull request #40 from lae/docs/icmp-does-not-require-root

Add notes for privileges necessary for ICMP module

8 years agoAdd notes about setting cap_net_raw for ICMP module
Musee Ullah [Mon, 30 May 2016 18:15:21 +0000 (11:15 -0700)]
Add notes about setting cap_net_raw for ICMP module

8 years agoMerge pull request #39 from prometheus/sdurrheimer/release-process
Brian Brazil [Sun, 15 May 2016 09:09:02 +0000 (10:09 +0100)]
Merge pull request #39 from prometheus/sdurrheimer/release-process

New release process using docker, circleci and a centralized building tool

8 years agoUse common/version package
Steve Durrheimer [Sat, 14 May 2016 12:17:09 +0000 (14:17 +0200)]
Use common/version package

8 years agoMove to common/log package
Steve Durrheimer [Sat, 14 May 2016 12:02:22 +0000 (14:02 +0200)]
Move to common/log package

8 years agoAdd missing license headers
Steve Durrheimer [Sat, 14 May 2016 11:57:11 +0000 (13:57 +0200)]
Add missing license headers

8 years agoNew release process using docker, circleci and a centralized building tool
Steve Durrheimer [Sat, 14 May 2016 11:52:25 +0000 (13:52 +0200)]
New release process using docker, circleci and a centralized building tool

8 years agoNow developing 0.2.0
Brian Brazil [Fri, 8 Apr 2016 09:22:33 +0000 (10:22 +0100)]
Now developing 0.2.0

8 years agoVendor dependencies.
Brian Brazil [Mon, 4 Apr 2016 11:01:15 +0000 (12:01 +0100)]
Vendor dependencies.

8 years agoMerge pull request #36 from tux21b/headers
Brian Brazil [Thu, 31 Mar 2016 10:10:29 +0000 (11:10 +0100)]
Merge pull request #36 from tux21b/headers

configureable http headers for the http probe

8 years agoadded http headers example to the README.md
Christoph Hack [Thu, 31 Mar 2016 09:59:51 +0000 (11:59 +0200)]
added http headers example to the README.md

8 years agoconfigureable http headers for the http probe
Christoph Hack [Thu, 31 Mar 2016 09:29:18 +0000 (11:29 +0200)]
configureable http headers for the http probe

8 years agoMerge pull request #33 from hudashot/tcp_ssl
Brian Brazil [Sun, 28 Feb 2016 18:58:16 +0000 (18:58 +0000)]
Merge pull request #33 from hudashot/tcp_ssl

Support TLS in TCP connections

8 years agoSupport TLS in TCP connectionst
hudashot [Sun, 14 Feb 2016 21:53:32 +0000 (21:53 +0000)]
Support TLS in TCP connectionst

This depends on prometheus/common#31

8 years agoMerge pull request #31 from flecno/patch-1
Brian Brazil [Tue, 2 Feb 2016 21:14:51 +0000 (21:14 +0000)]
Merge pull request #31 from flecno/patch-1

Fix typo

8 years agoFix typo
Timo Zingel [Tue, 2 Feb 2016 20:47:14 +0000 (21:47 +0100)]
Fix typo

8 years agoMerge pull request #30 from RichiH/fix/update_Makefil
Brian Brazil [Wed, 27 Jan 2016 08:56:50 +0000 (08:56 +0000)]
Merge pull request #30 from RichiH/fix/update_Makefil

Update Makefile.COMMON from utils repo

8 years agoUpdate Makefile.COMMON from utils repo
Richard Hartmann [Wed, 27 Jan 2016 07:25:43 +0000 (08:25 +0100)]
Update Makefile.COMMON from utils repo

8 years agoMerge pull request #21 from stapelberg/feature-banner
Brian Brazil [Thu, 3 Dec 2015 08:12:15 +0000 (08:12 +0000)]
Merge pull request #21 from stapelberg/feature-banner

tcp: query_response matching

8 years agoImplement query_response matching for the tcp prober.
Michael Stapelberg [Tue, 1 Dec 2015 22:34:24 +0000 (23:34 +0100)]
Implement query_response matching for the tcp prober.

fixes #13

9 years agotcp_test: fix failing net.Listen by specifying :0 as port
Michael Stapelberg [Tue, 1 Dec 2015 21:25:27 +0000 (22:25 +0100)]
tcp_test: fix failing net.Listen by specifying :0 as port

9 years agoMerge pull request #19 from stapelberg/master
Brian Brazil [Tue, 1 Dec 2015 10:32:11 +0000 (10:32 +0000)]
Merge pull request #19 from stapelberg/master

http: implement FailIfRegexp and FailIfNotRegexp

9 years agohttp: implement FailIfRegexp and FailIfNotRegexp
Michael Stapelberg [Tue, 24 Nov 2015 17:39:41 +0000 (18:39 +0100)]
http: implement FailIfRegexp and FailIfNotRegexp

fixes #12

9 years agoMerge pull request #17 from RichiH/fix/readme
Brian Brazil [Wed, 25 Nov 2015 12:50:48 +0000 (12:50 +0000)]
Merge pull request #17 from RichiH/fix/readme

README.md: Point probe to prometheus.io

9 years agohttp: abort probing when request could not be created
Michael Stapelberg [Tue, 24 Nov 2015 17:10:48 +0000 (18:10 +0100)]
http: abort probing when request could not be created

As per https://play.golang.org/p/4keb0zznDB, passing a nil http.Request
to Client.Do() results in a runtime error.

9 years agoREADME.md: Point probe to prometheus.io
Richard Hartmann [Tue, 24 Nov 2015 11:38:54 +0000 (12:38 +0100)]
README.md: Point probe to prometheus.io

9 years agoMerge pull request #11 from prometheus/brian-brazil-patch-1
Julius Volz [Sat, 14 Nov 2015 14:15:10 +0000 (15:15 +0100)]
Merge pull request #11 from prometheus/brian-brazil-patch-1

Mention ICMP

9 years agoMention ICMP
Brian Brazil [Sat, 14 Nov 2015 14:09:14 +0000 (14:09 +0000)]
Mention ICMP

9 years agoDefault port is now added after relabelling
Brian Brazil [Mon, 9 Nov 2015 11:45:39 +0000 (11:45 +0000)]
Default port is now added after relabelling

Update in forward compatible way for https://github.com/prometheus/prometheus/pull/1204

9 years agoMerge pull request #9 from jbarratt/dockerfile
Brian Brazil [Thu, 22 Oct 2015 10:45:06 +0000 (11:45 +0100)]
Merge pull request #9 from jbarratt/dockerfile

Added basic Dockerfile support & documentation

9 years agoAdded basic Dockerfile support & documentation
Joshua Barratt [Wed, 21 Oct 2015 22:09:06 +0000 (15:09 -0700)]
Added basic Dockerfile support & documentation

9 years agoMerge pull request #8 from lyda/go1.5
Brian Brazil [Wed, 21 Oct 2015 08:37:00 +0000 (09:37 +0100)]
Merge pull request #8 from lyda/go1.5

Switch to go version 1.5.1.

9 years agoUpdated with latest Makefile.COMMON from util.
Kevin Lyda [Wed, 21 Oct 2015 08:13:06 +0000 (09:13 +0100)]
Updated with latest Makefile.COMMON from util.

9 years agoMerge pull request #7 from lyda/readme-fix
Brian Brazil [Wed, 21 Oct 2015 00:12:01 +0000 (01:12 +0100)]
Merge pull request #7 from lyda/readme-fix

Have the example url match the example config.

9 years agoHave the example url match the example config.
Kevin Lyda [Tue, 20 Oct 2015 13:17:34 +0000 (14:17 +0100)]
Have the example url match the example config.

9 years agoSwitch to go version 1.5.1.
Kevin Lyda [Tue, 20 Oct 2015 13:15:53 +0000 (14:15 +0100)]
Switch to go version 1.5.1.

Now will match other prometheus projects.

9 years agoMerge pull request #2 from prometheus/unittests
Brian Brazil [Thu, 17 Sep 2015 15:33:49 +0000 (16:33 +0100)]
Merge pull request #2 from prometheus/unittests

Add unittests for http and tcp.

9 years agoAdd unittests for http and tcp.
Brian Brazil [Thu, 17 Sep 2015 14:06:21 +0000 (15:06 +0100)]
Add unittests for http and tcp.

Fix bug in default status codes accepted by http.
Allow for how redirect errors are handled.

9 years agoFix more url parameters
Brian Brazil [Wed, 9 Sep 2015 16:32:14 +0000 (17:32 +0100)]
Fix more url parameters

9 years agoFix param name in config example
Brian Brazil [Wed, 9 Sep 2015 16:31:27 +0000 (17:31 +0100)]
Fix param name in config example

9 years agoCan't have ' in target
Brian Brazil [Mon, 7 Sep 2015 12:30:12 +0000 (13:30 +0100)]
Can't have ' in target

9 years agoFix module name in example
Brian Brazil [Mon, 7 Sep 2015 12:17:13 +0000 (13:17 +0100)]
Fix module name in example

9 years agoFix link on status page
Brian Brazil [Mon, 7 Sep 2015 12:10:19 +0000 (13:10 +0100)]
Fix link on status page

9 years agoCorrect typo. mention icmp needs perms
Brian Brazil [Mon, 7 Sep 2015 11:10:30 +0000 (12:10 +0100)]
Correct typo. mention icmp needs perms

9 years agoMake http method configurable
Brian Brazil [Sun, 6 Sep 2015 06:57:59 +0000 (07:57 +0100)]
Make http method configurable

9 years agoImprove landing page
Brian Brazil [Sun, 6 Sep 2015 06:40:09 +0000 (07:40 +0100)]
Improve landing page

9 years agoCheck content of icmp echo reply
Brian Brazil [Sun, 6 Sep 2015 06:23:58 +0000 (07:23 +0100)]
Check content of icmp echo reply

9 years agoMerge pull request #1 from fabxc/fmt
Brian Brazil [Sun, 6 Sep 2015 05:32:15 +0000 (06:32 +0100)]
Merge pull request #1 from fabxc/fmt

Format code

9 years agoFormat code
Fabian Reinartz [Sat, 5 Sep 2015 23:41:46 +0000 (01:41 +0200)]
Format code

9 years agoAdd config docs
Brian Brazil [Sat, 5 Sep 2015 19:39:38 +0000 (20:39 +0100)]
Add config docs

9 years agoAdd ICMP support
Brian Brazil [Sat, 5 Sep 2015 19:16:32 +0000 (20:16 +0100)]
Add ICMP support

9 years agoAdd all the project infrastructure, use assigned port
Brian Brazil [Sat, 5 Sep 2015 17:37:28 +0000 (18:37 +0100)]
Add all the project infrastructure, use assigned port

9 years agoFill out http/ssl features. Add tcp connection check
Brian Brazil [Sat, 5 Sep 2015 17:07:19 +0000 (18:07 +0100)]
Fill out http/ssl features. Add tcp connection check

9 years agoMove probers to subdir, so more can be added
Brian Brazil [Sat, 5 Sep 2015 14:51:52 +0000 (15:51 +0100)]
Move probers to subdir, so more can be added

9 years agoInitial HTTP prober
Brian Brazil [Sat, 5 Sep 2015 14:37:10 +0000 (15:37 +0100)]
Initial HTTP prober