Skip to content

Metrics: expose install method counter#30327

Merged
marcoandredinis merged 2 commits intomasterfrom
marco/prometheus_install_method
Aug 18, 2023
Merged

Metrics: expose install method counter#30327
marcoandredinis merged 2 commits intomasterfrom
marco/prometheus_install_method

Conversation

@marcoandredinis
Copy link
Copy Markdown
Contributor

@marcoandredinis marcoandredinis commented Aug 11, 2023

This PR adds a new metric that exposes the number of servers currently running grouped by their install method.

Demo:
image

Note: install method is a list o strings, so the metric sorts its values and then joins them by "," to create a single identifier.

Related: #29988

@marcoandredinis marcoandredinis force-pushed the marco/prometheus_install_method branch 4 times, most recently from f3ea3ea to 1ab5495 Compare August 11, 2023 16:09
@marcoandredinis marcoandredinis added discover Issues related to Teleport Discover backport/branch/v12 and removed backport/branch/v12 labels Aug 11, 2023
@marcoandredinis marcoandredinis marked this pull request as ready for review August 11, 2023 16:39
@marcoandredinis marcoandredinis force-pushed the marco/prometheus_install_method branch 2 times, most recently from 69a12c4 to f11b19d Compare August 16, 2023 14:28
Comment thread lib/auth/auth.go Outdated
Copy link
Copy Markdown
Member

@ravicious ravicious left a comment

Choose a reason for hiding this comment

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

I have little experience with this part of the codebase, but the code looks good to me.

This PR adds a new metric that exposes the number of servers currently
running grouped by their install method.

Note: install method is a list o strings, so the metric sorts its values
and then joins them by "," to create a single identifier.
@marcoandredinis marcoandredinis force-pushed the marco/prometheus_install_method branch from 5afb6b9 to 18e8b08 Compare August 18, 2023 14:45
@marcoandredinis marcoandredinis added this pull request to the merge queue Aug 18, 2023
Merged via the queue into master with commit 307dc99 Aug 18, 2023
@marcoandredinis marcoandredinis deleted the marco/prometheus_install_method branch August 18, 2023 15:54
@public-teleport-github-review-bot
Copy link
Copy Markdown

@marcoandredinis See the table below for backport results.

Branch Result
branch/v13 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

discover Issues related to Teleport Discover documentation size/md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants