Skip to content

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

Merged
zeitlinger merged 4 commits into
prometheus:mainfrom
zeitlinger:docs/2334-query-limits
Aug 19, 2026
Merged

docs: document scrape query limits in request API#2391
zeitlinger merged 4 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>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger
zeitlinger marked this pull request as ready for review August 19, 2026 09:44
@zeitlinger
zeitlinger merged commit ba8f5eb into prometheus:main Aug 19, 2026
23 checks passed
@zeitlinger
zeitlinger deleted the docs/2334-query-limits branch August 19, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants