don't watch http when cribldest is set
@@ -135,12 +135,6 @@ func (c *Config) setDefault() error {
Name: "(stdout|stderr)",
Value: ".*",
},
- {
- WatchType: "http",
- Name: ".*",
- Field: ".*",
- Value: ".*",
- },
{
WatchType: "net",
Name: ".*",
@@ -318,6 +312,13 @@ func (c *Config) configFromRunOpts() error {
c.sc.Metric.Transport = ScopeTransport{}
c.sc.Event.Transport = ScopeTransport{}
c.sc.Libscope.ConfigEvent = true
+ } else {
+ c.sc.Event.Watch = append(c.sc.Event.Watch, ScopeWatchConfig{
+ WatchType: "http",
+ Name: ".*",
+ Field: ".*",
+ Value: ".*",
+ })
}
if c.Loglevel != "" {
