slog_prometheus

Crates.ioslog_prometheus
lib.rsslog_prometheus
version0.1.0
created_at2022-05-03 08:24:25.064586+00
updated_at2022-05-03 08:24:25.064586+00
descriptionPrometheus metrics for the slog logging framework
homepagehttps://github.com/retarus/slog_prometheus
repositoryhttps://github.com/retarus/slog_prometheus
max_upload_size
id579573
size71,395
Christoph Girstenbrei (girstenbrei)

documentation

README

slog_prometheus - Logging metrics

Why?

Loads of times, using the tracing ecosystem is a very good option. But sometimes, I have a small piece of software, which does simple logging and as I try to be a responsible dev, it should be monitored. So i give it some metrics.

This library tries to add a few simple metrics about what has been logged, making it easy to have a catch-all alert for things logging errors.

How?

let drain = slog_prometheus::MonitoringDrainBuilder::new(drain)
        .build()
        .expect("Failed configuring setting up prometheus")
        .fuse();

Feel free to open an issue if you encounter any problems or are interested in features.

Commit count: 0

cargo fmt