Skip to content

Use the correct label for new cache metrics#55153

Merged
espadolini merged 1 commit intomasterfrom
espadolini/cache-reset-metric-label-fix
May 27, 2025
Merged

Use the correct label for new cache metrics#55153
espadolini merged 1 commit intomasterfrom
espadolini/cache-reset-metric-label-fix

Conversation

@espadolini
Copy link
Copy Markdown
Contributor

The new cache metrics teleport_cache_health and teleport_cache_last_reset_seconds and added in #54776 are using a label for cache_component of the form auth:1:cache, matching the label used for logging rather than the one used for the previously existing metrics. This PR changes the label to use c.target to match the other two cache metrics.

@espadolini espadolini requested a review from rosstimothy May 26, 2025 19:22
@espadolini espadolini added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v15 backport/branch/v17 labels May 26, 2025
@github-actions github-actions Bot requested review from fspmarshall and kopiczko May 26, 2025 19:22
@espadolini
Copy link
Copy Markdown
Contributor Author

The metric label of the same format as the log component already made it in v15 and v16 releases, is it something that we should not change? Should we emit the metric with both for a couple more major versions?

Now that Teleport never internally restarts, the labels should always be of the format <service>:1:cache, FWIW.

@espadolini espadolini added this pull request to the merge queue May 27, 2025
Merged via the queue into master with commit a73613d May 27, 2025
46 checks passed
@espadolini espadolini deleted the espadolini/cache-reset-metric-label-fix branch May 27, 2025 09:25
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@espadolini See the table below for backport results.

Branch Result
branch/v15 Failed
branch/v16 Failed
branch/v17 Failed

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

Labels

backport/branch/v17 no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants