feat: added gauge type & some tests
This commit is contained in:
parent
a1049943a4
commit
52fbf8ce5d
8 changed files with 227 additions and 50 deletions
10
exporter/exporter.v
Normal file
10
exporter/exporter.v
Normal 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
4
exporter/prometheus.v
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
module exporter
|
||||
|
||||
pub struct PrometheusExporter {
|
||||
}
|
||||
Reference in a new issue