Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[v15] Add metric to expose cluster role count #47811

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

rosstimothy
Copy link
Contributor

Backport #47731 to branch/v15

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-47811.d1v2yqnl3ruxch.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 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
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 22, 2024
@rosstimothy rosstimothy added this pull request to the merge queue Oct 22, 2024
Merged via the queue into branch/v15 with commit acdc3f3 Oct 22, 2024
37 checks passed
@rosstimothy rosstimothy deleted the tross/backport-47731/v15 branch October 22, 2024 20:14
@doggydogworld doggydogworld mentioned this pull request Oct 22, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants