Commit Graph
39 Commits
Author SHA1 Message Date
515b990f52 Add http_file prober (#144)
* feat: add remote_file probe

* fix: use tls module config

* chore: write http/https tests for probing remote file

* chore: get rid of useless lines

* fix: get rid of useless file download, check body directly

* fix: use checkCertificateMetrics to actually check values

* Rename remote_file to http_file

You can fetch remote content with a lot of different protocols, so I
think it's worth being specific here.

As part of this change I've fixed up some of the logic in the code. I've
also created a separate `http_file` block in the module config.

* Actually include renamed files

---------

Co-authored-by: Anthony LE BERRE <aleberre@veepee.com>
Co-authored-by: Rob Best <rob.best@jetstack.io>
2024-04-28 16:48:09 +01:00
manishpanjwani21andRob Best 67a8b2d393 Update README.md (#90)
* Update README.md

Added the Example for type - kubernetes

* Update README.md

Co-authored-by: Rob Best <robertbest89@gmail.com>
2022-05-09 17:56:42 +01:00
teuto.net Netzdienste GmbHandTimo Boldt 65249bc2e7 added pop3 STARTTLS queryResponse (#84)
* added pop3 STARTTLS queryResponse

* implemented pop3 test, added pop3 starttls parameter to README

Co-authored-by: Timo Boldt <tb@teuto.net>
2021-12-31 13:47:05 +00:00
Rob Best 02d61835e8 Add default_module and target options
If default_module is set then the exporter will use that when the module
parameter isn't set.

If target is set for a module then the module will use that target,
ignoring the target parameter completely.
2021-12-23 15:28:41 +00:00
Rob Best 087c407585 Move grafana dashboard to contrib
I'm not actively maintaining this and a contrib diredctory indicates
that.
2021-12-23 13:36:54 +00:00
Rob Best d475f3abd2 Update release instructions 2021-12-23 13:22:10 +00:00
Ben RitceyandRob Best 43dee906c6 Support TLS renegotiation (#83)
* Support TLS renegotiation

* Bump version

* Revert version bump

* Extend TLSConfig with renegotiation support

* Update config/config.go - comment formatting

Co-authored-by: Rob Best <robertbest89@gmail.com>

* add dedicated renegotiation example

* Create local NewTLSConfig in order to incorporate local extentions

* go mod tidy

* Move TLS renegotiation parsing into UnmarshalYAML

Co-authored-by: Rob Best <robertbest89@gmail.com>
2021-12-09 08:34:59 +00:00
Rob Best 78306b97c9 actions: push to Docker Hub 2021-09-11 13:06:47 +01:00
Tarvi Pillessaar a94845ae5d Add support for postgresql protocol (#77)
With postgresql to initiate SSL-encrypted connection specific combination
of bytes must be sent to the server.

Message flow is described on following page
https://www.postgresql.org/docs/13/protocol-flow.html#id-1.10.5.7.11

And SSLRequest message format is described on
https://www.postgresql.org/docs/13/protocol-message-formats.html

The value of SSLRequest message becomes to bytes that is used in the code
2021-08-23 08:39:40 +01:00
Rob Best d5cbd64f94 Update README.md
- Remove TOC (Github provides one)
- Add quicker links at the top of the doc
2021-05-05 22:48:07 +01:00
treydock 5265251777 Support getting certificate information from a kubeconfig file (#61)
* Support getting certificate information from a kubeconfig file

* Support relative paths for cluster CA and user certificate in kubeconfig

* Determine relative using filepath.IsAbs

* Make relative path logic actually work, add test. Move all kubeconfig parsing into parsing specific function
2021-04-02 10:53:31 +01:00
Rob Best 8cde56ce6a Fix examples in the README 2020-11-16 08:47:52 +00:00
Rob Best fdda9c3eca Add prober column to metrics table 2020-11-16 08:40:48 +00:00
Rob Best f4782e3093 Make the description in the README more succinct 2020-11-15 22:28:36 +00:00
Rob Best 63dcb9aff1 Add kubernetes prober 2020-11-15 22:12:18 +00:00
Rob Best 0506638f63 Add file prober 2020-11-15 13:59:51 +00:00
Rob Best e05745b959 Export OCSP stapling metrics (#54)
* Export OCSP stapling metrics

* Add ocsp_response_stapled boolean

* Add missing ocsp_this_update metric to README
2020-10-27 09:10:42 +00:00
Rob Best 119d3cd200 Add a configurable timeout to the module configuration (#55) 2020-10-09 16:47:21 +01:00
Rob Best 17aa4e2d2d Add metrics for certificates in the verified chains (#48) 2020-09-11 18:20:41 +01:00
Rob Best 89eff28fac Add starttls for smtp, imap and ftp (#36) 2020-06-22 16:50:21 +01:00
Rob Best 1c8bd16057 Add proxy_url parameter to https configuration (#35)
This supports the use of more than one proxy server per exporter instance.
2020-06-17 16:48:59 +01:00
Rob Best 801179eae7 Move to a modules/probers model, like the blackbox_exporter. (#34)
There are a number of reasons for this change:
- Modules allow a single instance of the exporter to be configured with numerous
different tls configs. Previously you had to run a different exporter for each
combination.
- Adding new and more complicated options to the exporter should be easier with
modules than if I was to go down the route of accepting configuration directly through url params
- I prefer defining a specific prober (https,tcp) over using the URL to guess
what the user wants
2020-06-17 16:29:21 +01:00
Rob Best b7cdf62493 update release process notes in README 2020-03-13 10:26:31 +00:00
Rob Best 66ae153296 add a grafana dashboard (#25) 2020-03-12 18:06:37 +00:00
Rob Best 13519dd2da add goreleaser
This makes cutting a new release infinitely easier
2020-03-12 17:40:03 +00:00
Rob Best e3477cf63c add TLS version metric (#24) 2020-03-08 18:50:25 +00:00
Rob Best 11e3e4c216 move metadata out of metrics and into labels 2020-01-24 17:47:51 +00:00
Rob Best 874f02f403 fix docker instructions in README 2019-12-18 10:48:50 +00:00
Rob Best 5b927d85bd fix example queries in README 2019-12-08 20:40:43 +00:00
Rob Best f91d97c220 Add TOC to README 2019-09-21 10:28:49 +01:00
Rob Best cfab972f8f Use https or tcp client based on target address
There are some advantages to using a http client over tcp. For instance,
using http allows you to take advatange of a http proxy, which may be necessary
in some environments.

This commit puts the http client back, alongside tcp, and decides which one to use
based on the target address.
2019-09-21 10:28:49 +01:00
Rob Best d1bbe73a08 Update README and examples for tls changes 2019-03-20 18:07:18 +00:00
Rob Best f17849f9b2 Update documentation for client authentication 2019-03-11 18:43:21 +00:00
Tomas Dabasinskas 41450add27 Update docs 2019-01-25 09:56:38 +02:00
Rob Best 1fab18aeb0 Update docker instructions in the README 2017-12-03 12:51:40 +00:00
Rob Best 1bc71085ad It looks like there's a standard approach most Prometheus exporters use when building Dockerfiles, so I'm going to adhere to that. Rather than building the binary inside the container, it's built outside and then copied into the bin dir. 2017-12-02 19:03:36 +00:00
Rob Best a3d8b34adf Add a Makefile that adheres to the Prometheus conventions 2017-12-02 18:55:31 +00:00
Rob Best a28d8f7be1 Switch to kingpin flags 2017-10-08 18:28:48 +01:00
Rob Best 57063a77df Initial commit 2017-08-20 19:41:00 +01:00