bird_exporter/metrics/metrics_exporter.go
2017-12-01 00:37:12 +01:00

12 lines
256 B
Go

package metrics
import (
"github.com/czerwonk/bird_exporter/protocol"
"github.com/prometheus/client_golang/prometheus"
)
type MetricExporter interface {
Describe(ch chan<- *prometheus.Desc)
Export(p *protocol.Protocol, ch chan<- prometheus.Metric)
}