Add pass, drop, and interval to the plugin options

This commit is contained in:
Evan Phoenix
2015-05-19 22:19:32 -07:00
parent 203d3695b4
commit 8aa7e355f6
4 changed files with 211 additions and 12 deletions

View File

@@ -14,11 +14,19 @@ type BatchPoints struct {
Debug bool
Prefix string
Config *ConfiguredPlugin
}
func (bp *BatchPoints) Add(name string, val interface{}, tags map[string]string) {
name = bp.Prefix + name
if bp.Config != nil {
if !bp.Config.ShouldPass(name) {
return
}
}
if bp.Debug {
var tg []string