Skip to content
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

Merged
merged 3 commits into from
Oct 5, 2017
Merged

Conversation

kyhavlov
Copy link
Contributor

@kyhavlov kyhavlov commented Oct 4, 2017

This fixes the double consul.consul. prefix on the metric names, adds undocumented metrics to the telemetry docs, and adds an enable_deprecated_names field to the telemetry config.

Copy link
Contributor

@slackpad slackpad left a 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>
Copy link
Contributor

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?

@@ -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...)
Copy link
Contributor

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.

@slackpad
Copy link
Contributor

slackpad commented Oct 5, 2017

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>
Copy link
Contributor

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.

Copy link
Contributor

@slackpad slackpad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kyhavlov kyhavlov merged commit adf2967 into master Oct 5, 2017
@kyhavlov kyhavlov deleted the metric-docs branch October 5, 2017 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants