-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update metric names and add a legacy config flag #3535
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few minor things then LGTM.
<td>hits</td> | ||
<td>counter</td> | ||
</tr> | ||
<tr> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are already down in "cluster health", though they do make sense here. Maybe move that stuff up?
agent/config/runtime_test.go
Outdated
@@ -1658,8 +1658,8 @@ func TestConfigFlagsAndEdgecases(t *testing.T) { | |||
`}, | |||
patch: func(rt *RuntimeConfig) { | |||
rt.DataDir = dataDir | |||
rt.TelemetryAllowedPrefixes = []string{"foo"} | |||
rt.TelemetryBlockedPrefixes = []string{"bar"} | |||
rt.TelemetryAllowedPrefixes = append([]string{"foo"}, rt.TelemetryAllowedPrefixes...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have the expected stuff set explicitly. I'd also add another case to TestConfigFlagsAndEdgecases
that exercises this new flag directly.
The duplicate metrics are not super cheap, so we will likely want to remove the old ones as soon as possible. |
<td>queries</td> | ||
<td>counter</td> | ||
</tr> | ||
<tr> | ||
<td>`consul.http.<verb>.<path>`</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should move up to the agent section, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This fixes the double
consul.consul.
prefix on the metric names, adds undocumented metrics to the telemetry docs, and adds anenable_deprecated_names
field to the telemetry config.