diff --git a/agent/config/default.go b/agent/config/default.go index 994b696d8a..b905e60530 100644 --- a/agent/config/default.go +++ b/agent/config/default.go @@ -122,7 +122,7 @@ func DefaultSource() Source { telemetry = { metrics_prefix = "consul" filter_default = true - prefix_filter = [ "-consul.api.http" ] + prefix_filter = [] } `, diff --git a/agent/config/runtime_test.go b/agent/config/runtime_test.go index 600fadeada..a8acf6614a 100644 --- a/agent/config/runtime_test.go +++ b/agent/config/runtime_test.go @@ -2261,7 +2261,7 @@ func TestBuilder_BuildAndValide_ConfigFlagsAndEdgecases(t *testing.T) { patch: func(rt *RuntimeConfig) { rt.DataDir = dataDir rt.Telemetry.AllowedPrefixes = []string{"foo"} - rt.Telemetry.BlockedPrefixes = []string{"consul.api.http", "bar"} + rt.Telemetry.BlockedPrefixes = []string{"bar"} }, warns: []string{`Filter rule must begin with either '+' or '-': "nix"`}, }, @@ -6686,7 +6686,7 @@ func TestFullConfig(t *testing.T) { DogstatsdTags: []string{"3N81zSUB", "Xtj8AnXZ"}, FilterDefault: true, AllowedPrefixes: []string{"oJotS8XJ"}, - BlockedPrefixes: []string{"consul.api.http", "cazlEhGn"}, + BlockedPrefixes: []string{"cazlEhGn"}, MetricsPrefix: "ftO6DySn", PrometheusRetentionTime: 15 * time.Second, StatsdAddr: "drce87cy",