prober plugin use `all` mode as default (#634)

This commit is contained in:
yubo 2021-03-26 11:17:31 +08:00 committed by GitHub
parent 384e993ca1
commit 92ac8b09c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ import (
var (
pluginConfigs map[string]*PluginConfig
defaultPluginConfigContent = []byte("mode: whitelist # whitelist(default),all")
defaultPluginConfigContent = []byte("mode: all # whitelist,all(default)")
)
const (
@ -52,7 +52,7 @@ func (p *pluginConfig) Validate() error {
case "all":
p.mode = PluginModeAll
default:
p.mode = PluginModeWhitelist
p.mode = PluginModeAll
}
for k, v := range p.Metrics {