Commit Graph

19 Commits

Author SHA1 Message Date
SuperQ
2b8fbee030
Update build
* Update go to 1.20.
* Update Prometheus CI orb.
* Add landing page.
* Update Go modules.
* Update golangci-lint.

Signed-off-by: SuperQ <superq@gmail.com>
2023-04-01 12:06:31 +02:00
SuperQ
360d95c41d
Update exporter-toolkit
Update to the latest exporter-toolkit.
* Update Go to 1.19.
* Fixes CVE in exporter-toolkit.

NOTE: The config file flag has changed to `--web.config.file`.

Signed-off-by: SuperQ <superq@gmail.com>
2022-12-29 06:15:55 +01:00
Ben Ye
75ae2b065e
Support modules configuration (#146)
* support modules configuration

Signed-off-by: Ben Ye <ben.ye@bytedance.com>

* fallback default module if the param is missing

Signed-off-by: Ben Ye <ben.ye@bytedance.com>

* update readme and example config file

Signed-off-by: Ben Ye <ben.ye@bytedance.com>

* fix lint

Signed-off-by: Ben Ye <ben.ye@bytedance.com>
2022-05-27 14:47:32 +09:00
SuperQ
eaf94d3a5e
Update build
* Update to Go 1.17.
* Update modules.
* Enable golint CI test.
* Fixup golint issues.

Signed-off-by: SuperQ <superq@gmail.com>
2021-10-05 13:21:42 +02:00
SuperQ
5783a9ca02
Refactor FetchJson
Refactor FetchJson to use a constructor.
* Cleanup nolint to use a a .golangci.yml config.
* Switch go-kit/kit/log to go-kit/log.

Signed-off-by: SuperQ <superq@gmail.com>
2021-10-03 13:30:18 +02:00
Ravi
bd0852bc25
Add support for HTTP POST body content (#123)
* Add support for HTTP POST body content

* Add tests for POST body content

* Code structure refactor for review
2021-10-03 09:30:53 +00:00
rustyclock
fe22a839e2
Migrate JSONPath library
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2021-01-24 13:49:10 +09:00
Daniel Maganto
bffc11991b
Add TLS metrics support
Signed-off-by: Daniel Maganto <dmagantomartin@gmail.com>
2020-12-10 18:04:27 +01:00
rustyclock
9f94906a18
Change package name from 'internal' to 'exporter'
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-10-03 09:03:56 +09:00
rustyclock
9a50f9d6ec
Fix review comments
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-10-03 08:58:41 +09:00
rustyclock
014e2df99b
Add unit tests
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-20 11:48:09 +09:00
rustyclock
a6b9654e6a
Use NewConstMetric instead of regular Gauge
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-19 11:58:17 +09:00
rustyclock
a9d3155c71
Return 503 on connection errors
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-18 12:28:18 +09:00
rustyclock
4479a45118
Remove probe_duration metric
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-06 20:08:53 +09:00
rustyclock
bf7590adb7
Add HTTP config support
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-06 20:03:21 +09:00
rustyclock
fa085b219d
Switch to kingpin
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-06 07:32:11 +09:00
rustyclock
1e1ba273ed
Fix lint errors
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-05 18:39:09 +09:00
rustyclock
f57d3e9429
Migrate logging to promlog
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-05 18:31:04 +09:00
rustyclock
c869516e98
Refactor the complete code
* Make the working of this exporter similar to that of the blackbox_exporter to allow probing multiple targets.
* Add functionality to add headers to the request
* Update the example config to use `headers` as well as the `metrics` keys in alignment with the new code
* Add default header 'Accept: application/json'

Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-04 15:21:24 +09:00