feat: added gauge type & some tests

This commit is contained in:
Jef Roosens 2022-12-26 18:17:27 +01:00
parent a1049943a4
commit 52fbf8ce5d
8 changed files with 227 additions and 50 deletions

10
exporter/exporter.v Normal file
View file

@ -0,0 +1,10 @@
module exporter
import io
import metrics { MetricsCollector }
pub interface MetricsExporter {
load(collector MetricsCollector)
export_to_writer(writer io.Writer) !
export_to_string() string !
}

4
exporter/prometheus.v Normal file
View file

@ -0,0 +1,4 @@
module exporter
pub struct PrometheusExporter {
}