Commit Graph

3 Commits

Author SHA1 Message Date
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
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