Skip to content

docs: document scrape query limits in request API - #2391

Draft
zeitlinger wants to merge 3 commits into
prometheus:mainfrom
zeitlinger:docs/2334-query-limits
Draft

docs: document scrape query limits in request API#2391
zeitlinger wants to merge 3 commits into
prometheus:mainfrom
zeitlinger:docs/2334-query-limits

Conversation

@zeitlinger

@zeitlinger zeitlinger commented Aug 18, 2026

Copy link
Copy Markdown
Member

Summary

  • document the default implementation values maxQueryStringLength = 64 * 1024 and maxQueryParameterCount = 1024 in PrometheusHttpRequest JavaDoc
  • clarify that these values are fixed implementation limits, not runtime configuration
  • clarify that invalid or excessive query parameters produce HTTP 400

Follow-up to prometheus/client_java#2334 and discussion_r3752169308.

Validation

  • mise run lint:fix (blocked by the pre-existing 403 response for the README CNCF Slack link; the push hook passed using a temporary local-only README substitution, restored before completion)
  • mise run build
  • ./mvnw -pl prometheus-metrics-exporter-common test -Dcoverage.skip=true

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant