mirror of https://github.com/status-im/consul.git
remove consul.api.http from filtered metric prefixes
This commit is contained in:
parent
06c3509e49
commit
f5c51ae13b
|
@ -122,7 +122,7 @@ func DefaultSource() Source {
|
||||||
telemetry = {
|
telemetry = {
|
||||||
metrics_prefix = "consul"
|
metrics_prefix = "consul"
|
||||||
filter_default = true
|
filter_default = true
|
||||||
prefix_filter = [ "-consul.api.http" ]
|
prefix_filter = []
|
||||||
}
|
}
|
||||||
|
|
||||||
`,
|
`,
|
||||||
|
|
|
@ -2261,7 +2261,7 @@ func TestBuilder_BuildAndValide_ConfigFlagsAndEdgecases(t *testing.T) {
|
||||||
patch: func(rt *RuntimeConfig) {
|
patch: func(rt *RuntimeConfig) {
|
||||||
rt.DataDir = dataDir
|
rt.DataDir = dataDir
|
||||||
rt.Telemetry.AllowedPrefixes = []string{"foo"}
|
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"`},
|
warns: []string{`Filter rule must begin with either '+' or '-': "nix"`},
|
||||||
},
|
},
|
||||||
|
@ -6686,7 +6686,7 @@ func TestFullConfig(t *testing.T) {
|
||||||
DogstatsdTags: []string{"3N81zSUB", "Xtj8AnXZ"},
|
DogstatsdTags: []string{"3N81zSUB", "Xtj8AnXZ"},
|
||||||
FilterDefault: true,
|
FilterDefault: true,
|
||||||
AllowedPrefixes: []string{"oJotS8XJ"},
|
AllowedPrefixes: []string{"oJotS8XJ"},
|
||||||
BlockedPrefixes: []string{"consul.api.http", "cazlEhGn"},
|
BlockedPrefixes: []string{"cazlEhGn"},
|
||||||
MetricsPrefix: "ftO6DySn",
|
MetricsPrefix: "ftO6DySn",
|
||||||
PrometheusRetentionTime: 15 * time.Second,
|
PrometheusRetentionTime: 15 * time.Second,
|
||||||
StatsdAddr: "drce87cy",
|
StatsdAddr: "drce87cy",
|
||||||
|
|
Loading…
Reference in New Issue