Metrics Exporter for vise
This crate provides a simple Prometheus metrics exporter for metrics defined
using vise. It is based on the hyper library and supports both pull-based
and push-based communication with Prometheus.
Usage
Add this to your Crate.toml:
[]
= "0.3.1"
An exporter can be initialized from a metrics Registry:
use watch;
use MetricsExporter;
async
See crate docs for more examples.
License
Distributed under the terms of either
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.