Skip to content

fix(logql): return error on way-too-long label string - #20937

Merged
bboreham merged 1 commit into
grafana:mainfrom
bboreham:guard-parselabels
Feb 25, 2026
Merged

fix(logql): return error on way-too-long label string#20937
bboreham merged 1 commit into
grafana:mainfrom
bboreham:guard-parselabels

Conversation

@bboreham

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

The underlying library panics if given such a ridiculous input.

See: prometheus/prometheus#17993

Which issue(s) this PR fixes:
Part of #20936 (not a complete fix)

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • NA Documentation added
  • Tests updated
  • Title matches the required conventional commits format, see here
  • NA Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • NA If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory.
The underlying library panics if given such a ridiculous input.

See: prometheus/prometheus#17993
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
@bboreham
bboreham requested a review from a team as a code owner February 23, 2026 18:33
@bboreham bboreham changed the title fix (logql): return error on way-too-long label string Feb 23, 2026
@bboreham
bboreham merged commit 9c9660a into grafana:main Feb 25, 2026
87 of 88 checks passed
@bboreham
bboreham deleted the guard-parselabels branch February 25, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants