make dumper work

This commit is contained in:
davidnewhall2
2019-12-17 01:31:30 -08:00
parent aec4b12d3c
commit d3d420597e
11 changed files with 178 additions and 152 deletions

View File

@@ -17,6 +17,7 @@ var (
type Input interface {
Initialize(Logger) error // Called once on startup to initialize the plugin.
Metrics() (*Metrics, error) // Called every time new metrics are requested.
RawMetrics(Filter) ([]byte, error)
}
// InputPlugin describes an input plugin's consumable interface.
@@ -25,6 +26,12 @@ type InputPlugin struct {
Input
}
// Filter is used for raw metrics filters.
type Filter struct {
Type string
Term string
}
// NewInput creates a metric input. This should be called by input plugins
// init() functions.
func NewInput(i *InputPlugin) {