Add pass, drop, and interval to the plugin options
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user