Skip to content

feat(loki.secretfilter): Remove redundant secrets_redacted_by_rule_total and secrets_redacted_by_origin metrics#5970

Merged
kleimkuhler merged 5 commits intomainfrom
kleimkuhler/secretfilter-remove-metrics
Apr 7, 2026
Merged

feat(loki.secretfilter): Remove redundant secrets_redacted_by_rule_total and secrets_redacted_by_origin metrics#5970
kleimkuhler merged 5 commits intomainfrom
kleimkuhler/secretfilter-remove-metrics

Conversation

@kleimkuhler
Copy link
Copy Markdown
Member

Brief description of Pull Request

The loki_secretfilter_secrets_redacted_by_category_total metric (introduced in #5855) partitions by both rule and origin, making the two single-dimension metrics redundant. Any query with them can be expressed via sum by (rule|origin) (...) on the category metric.

This change removes those metrics now that they are no longer needed.

Issue(s) fixed by this Pull Request

Redundant metrics lead to high cardinality and complicate secretfilter.

PR Checklist

  • Documentation updated
  • Tests updated

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2026

💻 Deploy preview deleted (feat(loki.secretfilter): Remove redundant secrets_redacted_by_rule_total and secrets_redacted_by_origin metrics).

@kleimkuhler kleimkuhler requested a review from mikefat April 1, 2026 21:48
@kleimkuhler kleimkuhler marked this pull request as ready for review April 2, 2026 14:35
@kleimkuhler kleimkuhler requested review from a team and clayton-cornell as code owners April 2, 2026 14:35
Copy link
Copy Markdown
Contributor

@mikefat mikefat left a comment

Choose a reason for hiding this comment

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

LGTM just minor comment on the docs formatting

Comment thread docs/sources/reference/components/loki/loki.secretfilter.md Outdated
@kleimkuhler kleimkuhler merged commit b16decb into main Apr 7, 2026
58 of 62 checks passed
@kleimkuhler kleimkuhler deleted the kleimkuhler/secretfilter-remove-metrics branch April 7, 2026 18:35
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants