1
0
mirror of https://github.com/Lusitaniae/apache_exporter.git synced 2025-04-18 15:04:01 +03:00
Daniel Swarbrick 24b33e80e3
Update to latest Prometheus dependencies (#225)
The Prometheus ecosystem is moving away from go-kit/log, and instead
adopting the Go standard library log/slog.

prometheus/exporter-toolkit v0.13.0 introduced a
non-backwards-compatible change, requiring exporters to supply a
*slog.Logger to the web.ListenAndServe() function.

The end-user changes are minimal. Logging is still in logfmt by default,
albeit with some minor changes:
- "ts" (timestamp) field is now "time", and expressed in local time with
  timezone offset (previously it was UTC)
- "caller" field is replaced by "source", which is also now more
  verbose, with a fully qualified path
- "level" field values are now capitalized, e.g. "INFO"

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
2024-09-19 08:46:06 -07:00
..