add Metrics() to output interface{}
package outputs
-import "log"
+import (
+ "log"
+
+ "github.com/prometheus/client_golang/prometheus"
+)
type Output interface {
Init(map[string]interface{}, *log.Logger) error
Write([]byte)
Close() error
+ Metrics() []prometheus.Collector
}
type Initializer func() Output
