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

usagemetrics: add cluster members to metrics API #10340

Merged
merged 9 commits into from
Jun 3, 2021

Conversation

pcewing
Copy link
Contributor

@pcewing pcewing commented Jun 2, 2021

This PR adds cluster members to the metrics API. The number of members per
segment are reported as well as the total number of members.

Tested by running a multi-node cluster locally and ensuring the numbers were
correct. Also added unit test coverage to add the new expected gauges to
existing test cases.

@pcewing
Copy link
Contributor Author

pcewing commented Jun 2, 2021

Realized that members.servers doesn't need to be reported on a per-segment basis because servers should always be in the default segment. Will get that fixed and also add an entry to the changelog to appease the checks later tonight!

@vercel vercel bot temporarily deployed to Preview – consul June 3, 2021 05:22 Inactive
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging June 3, 2021 05:22 Inactive
Copy link
Member

@mkeeler mkeeler left a comment

Choose a reason for hiding this comment

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

Overall this is great. I have a few minor nits but nothing major.

agent/consul/usagemetrics/usagemetrics.go Outdated Show resolved Hide resolved
agent/consul/usagemetrics/usagemetrics.go Show resolved Hide resolved
agent/consul/usagemetrics/usagemetrics.go Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging June 3, 2021 14:37 Inactive
@vercel vercel bot temporarily deployed to Preview – consul June 3, 2021 14:37 Inactive
@vercel vercel bot temporarily deployed to Preview – consul June 3, 2021 14:43 Inactive
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging June 3, 2021 14:43 Inactive
Copy link
Member

@mkeeler mkeeler left a comment

Choose a reason for hiding this comment

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

LGTM. I think we also need to update the telemetry docs in this table here: https://github.com/hashicorp/consul/blob/master/website/content/docs/agent/telemetry.mdx#metrics-reference

@vercel vercel bot temporarily deployed to Preview – consul-ui-staging June 3, 2021 15:10 Inactive
@pcewing pcewing merged commit 42a51b1 into master Jun 3, 2021
@pcewing pcewing deleted the pcewing/f-member-metrics branch June 3, 2021 15:25
@hc-github-team-consul-core
Copy link
Collaborator

🍒 If backport labels were added before merging, cherry-picking will start automatically.

To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/380096.

@hc-github-team-consul-core
Copy link
Collaborator

🍒✅ Cherry pick of commit 42a51b1 onto release/1.10.x succeeded!

@hc-github-team-consul-core
Copy link
Collaborator

🍒❌ Cherry pick of commit 42a51b1 onto release/1.9.x failed! Build Log

pcewing pushed a commit that referenced this pull request Jun 3, 2021
This PR adds cluster members to the metrics API. The number of members per
segment are reported as well as the total number of members.

Tested by running a multi-node cluster locally and ensuring the numbers were
correct. Also added unit test coverage to add the new expected gauges to
existing test cases.
pcewing pushed a commit that referenced this pull request Jun 3, 2021
This PR adds cluster members to the metrics API. The number of members per
segment are reported as well as the total number of members.

Tested by running a multi-node cluster locally and ensuring the numbers were
correct. Also added unit test coverage to add the new expected gauges to
existing test cases.
freddygv pushed a commit that referenced this pull request Jun 10, 2021
This PR adds cluster members to the metrics API. The number of members per
segment are reported as well as the total number of members.

Tested by running a multi-node cluster locally and ensuring the numbers were
correct. Also added unit test coverage to add the new expected gauges to
existing test cases.
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.

None yet

3 participants