Repository navigation
Commit ba8f5eb
authored
docs: document scrape query limits in request API (#2391)
## 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
[#2334](#2334)
and
[discussion_r3752169308](#2334 (comment)).
## 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>1 parent e5fa067 commit ba8f5eb
2 files changed
Lines changed: 11 additions & 2 deletions
File tree
- docs/content/exporters
- prometheus-metrics-exporter-common/src/main/java/io/prometheus/metrics/exporter/common
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
| |||
0 commit comments