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

[v16] Add metric to expose cluster role count #47812

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

rosstimothy
Copy link
Contributor

Backport #47731 to branch/v16

changelog: Added a new teleport_roles_total metric that exposes the number of roles which exist in a cluster

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-47812.d212ksyjt6y4yg.amplifyapp.com

A new `teleport_roles_total` is added to count the number of roles
in the cluster. The metric is intentionally updated infrequently
to avoid putting any additional strain on the backend. Additionally,
the reads performed when calculating the metric are rate limited
to prevent any bursts in reads when the metric timer does fire.

The auth periodic tickers have also been consolidated into a single
multi-interval instead of a ticker per operation. To prevent the
sub-intervals from impacting each other all operations are moved
to their own goroutine once their ticker fires.
@rosstimothy rosstimothy force-pushed the tross/backport-47731/v16 branch from 28070d1 to acf74ef Compare October 22, 2024 15:31
@rosstimothy rosstimothy marked this pull request as ready for review October 22, 2024 15:53
@rosstimothy rosstimothy added this pull request to the merge queue Oct 22, 2024
Merged via the queue into branch/v16 with commit d86ebe9 Oct 22, 2024
43 checks passed
@rosstimothy rosstimothy deleted the tross/backport-47731/v16 branch October 22, 2024 17:46
This was referenced Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants