Commit Graph

47 Commits

Author SHA1 Message Date
d72a9c99a4 Merge pull request #23 from nikdoof/renovate/docker-build-push-action-4.x
Update docker/build-push-action action to v4
2023-03-23 21:46:05 +00:00
renovate[bot]
4a03c07093 Update docker/build-push-action action to v4 2023-02-28 15:01:13 +00:00
50b7701c77 Merge pull request #16 from nikdoof/renovate/alpine-3.x
Update alpine Docker tag to v3.16.3
2023-02-28 11:55:09 +00:00
renovate[bot]
8a35e17233 Update alpine Docker tag to v3.16.3 2022-11-20 17:29:33 +00:00
10ac1d13b9 Build for multiplatform 0.2.3 2022-07-16 12:20:50 +01:00
c80f4dcc66 Merge pull request #14 from nikdoof/renovate/alpine-3.x
Update dependency alpine to v3.16.0
2022-07-16 12:15:58 +01:00
48fea3fe80 Merge pull request #11 from nikdoof/renovate/golang-1.x
Update dependency golang to v1.18.4
2022-07-16 12:15:43 +01:00
d71bcc4d56 Merge pull request #12 from nikdoof/renovate/github.com-prometheus-client_golang-1.x
Update module github.com/prometheus/client_golang to v1.12.2
2022-07-16 12:15:17 +01:00
renovate[bot]
b37adf0b61 Update module github.com/prometheus/client_golang to v1.12.2 2022-07-16 11:15:05 +00:00
40643079b6 Merge pull request #7 from nikdoof/renovate/docker-build-push-action-3.x
Update docker/build-push-action action to v3
2022-07-16 12:14:57 +01:00
bbfc3b67b8 Merge pull request #8 from nikdoof/renovate/docker-login-action-2.x
Update docker/login-action action to v2
2022-07-16 12:14:51 +01:00
6f3887a3e2 Merge pull request #9 from nikdoof/renovate/docker-setup-buildx-action-2.x
Update docker/setup-buildx-action action to v2
2022-07-16 12:14:44 +01:00
7552505b99 Merge pull request #10 from nikdoof/renovate/docker-setup-qemu-action-2.x
Update docker/setup-qemu-action action to v2
2022-07-16 12:14:37 +01:00
ecbf98700d Merge pull request #13 from nikdoof/renovate/wangyoucao577-go-release-action-1.x
Update wangyoucao577/go-release-action action to v1.29
2022-07-16 12:14:26 +01:00
renovate[bot]
e90a87a435 Update dependency golang to v1.18.4 2022-07-16 11:14:02 +00:00
f85eafdf16 Merge pull request #15 from nikdoof/renovate/github.com-rs-zerolog-1.x
Update module github.com/rs/zerolog to v1.27.0
2022-07-16 12:13:46 +01:00
renovate[bot]
9b914f9f12 Update wangyoucao577/go-release-action action to v1.29 2022-06-24 12:13:21 +00:00
Renovate Bot
9a37b06aeb Update module github.com/rs/zerolog to v1.27.0 2022-06-07 21:37:09 +00:00
Renovate Bot
ee938d3759 Update dependency alpine to v3.16.0 2022-06-06 00:11:15 +00:00
Renovate Bot
4cefdcd89e Update docker/setup-qemu-action action to v2 2022-05-05 20:37:40 +00:00
Renovate Bot
f682e87555 Update docker/setup-buildx-action action to v2 2022-05-05 20:37:37 +00:00
Renovate Bot
22f41f8273 Update docker/login-action action to v2 2022-05-05 17:17:09 +00:00
Renovate Bot
c8821a2a9c Update docker/build-push-action action to v3 2022-05-05 17:17:06 +00:00
b72ae30261 Merge pull request #4 from nikdoof/renovate/wangyoucao577-go-release-action-1.x
Update wangyoucao577/go-release-action action to v1.26
0.2.2
2022-05-05 13:53:17 +01:00
Renovate Bot
a5375b97f8 Update wangyoucao577/go-release-action action to v1.26 2022-05-05 12:52:23 +00:00
e845933b6d Merge pull request #5 from nikdoof/renovate/actions-checkout-3.x
Update actions/checkout action to v3
2022-05-05 13:52:11 +01:00
d0a6fa700d Merge pull request #6 from nikdoof/renovate/alpine-3.x
Update dependency alpine to v3.15.4
2022-05-05 13:52:01 +01:00
914c166a82 Update Golang release version 2022-05-05 13:51:44 +01:00
31dced7273 Merge pull request #3 from nikdoof/renovate/golang-1.x
Update dependency golang to v1.18.1
2022-05-05 13:51:20 +01:00
d499adcb00 Merge pull request #1 from nikdoof/renovate/github.com-prometheus-client_golang-1.x
Update module github.com/prometheus/client_golang to v1.12.1
2022-05-05 13:51:03 +01:00
Renovate Bot
e03bec5d12 Update module github.com/prometheus/client_golang to v1.12.1 2022-05-05 12:50:52 +00:00
9e0072de26 Merge pull request #2 from nikdoof/renovate/github.com-rs-zerolog-1.x
Update module github.com/rs/zerolog to v1.26.1
2022-05-05 13:49:44 +01:00
Renovate Bot
cb243b79f4 Update dependency golang to v1.18.1 2022-04-24 22:19:03 +00:00
Renovate Bot
1c43fa9dc1 Update dependency alpine to v3.15.4 2022-04-24 22:18:58 +00:00
Renovate Bot
2cf5b631d9 Update actions/checkout action to v3 2022-03-07 14:00:25 +00:00
Renovate Bot
12dc22f33a Update module github.com/rs/zerolog to v1.26.1 2021-12-16 00:48:30 +00:00
a7b272e5da Fix dockerfile 0.2.1 2021-12-06 17:36:12 +00:00
7174c924b5 Add build infra 2021-12-06 17:33:53 +00:00
Andrew Rowson
cee9a58e4c Added dockerfile 2021-04-17 14:54:07 +01:00
James O'Gorman
89bacd6ee3 Set User-Agent header
It's nice to third parties if you set User-Agent so the caller can be
identified. By default Go will set a User-Agent header to a string like
"Go-http-client/1.1".

The library now sets it to a string that identifies the source of the
program (github.com/jamesog/aaisp-chaos) and the compiled Go OS, arch
and version, to aid any potential debugging:

    chaos-go (darwin; amd64; go1.15.5) github.com/jamesog/aaisp-chaos
v0.2.0
2020-11-28 15:56:16 +00:00
James O'Gorman
16d476249d Improve flag usage, check for required env vars
Switch to a custom FlagSet and add a nicer usage message.

Check for the required CHAOS_CONTROL_LOGIN and CHAOS_CONTROL_PASSWORD
environment variables and exit with an error if neither is set. The
usage string also mentions that both must be set.
2020-11-28 15:53:47 +00:00
James O'Gorman
cab8f1f626 Add a standard logger and HTTP logging middleware
Create a standard log object and use dependency injection to pass it to
the broadbandCollector and a new loggingMiddleware for wrapping HTTP
requests to log the request.

Logs are emitted as structured JSON logs by default but can be switched
to a human-friendly output by passing -log.level console.

The Prometheus client_golang library has also been upgraded.
2020-11-28 15:06:05 +00:00
James O'Gorman
b8f807c01f Add aaisp_scrape_success gauge
Previously if we fail to connect to CHAOS during a scrape no metrics are
emitted.

Now a aaisp_scrape_success metric is always emitted with values 0 for
failure and 1 for success, along the lines of blackbox_exporter's
probe_success metric.
2020-11-28 14:20:58 +00:00
James O'Gorman
d38a72627f Add LICENSE v0.1.0 2019-10-13 17:51:09 +01:00
James O'Gorman
85eccc7bef Note exporter environment variables and listen flag
The README for the Prometheus exporter failed to mention that you must
set some environment variables for authentication or that you can change
the address the exporter listens on.
2019-10-13 17:48:26 +01:00
James O'Gorman
d8ee8eec63 Fix up GFM syntax
GitHub Flavoured Markdown's syntax for creating a list of checkboxes requires both the `[ ]` and a `*` list marker.
2019-10-13 17:40:38 +01:00
James O'Gorman
732a45e26a Initial commit
This adds a rudimentary `chaos` package for querying broadband info, and
a Prometheus exporter.
2019-10-13 17:37:31 +01:00