Comments (3)
I am running 2.49.0 and the Accept
-header still seems to be broken:
0x0000: 4500 0157 c490 4000 3f06 64e6 0a93 fe02 E..W..@.?.d.....
0x0010: 0a93 fe01 a48c 239a 156c c3a6 729b 3723 ......#..l..r.7#
0x0020: 8018 0230 27ce 0000 0101 080a 6b6c c2da ...0'.......kl..
0x0030: 9b09 2be5 4745 5420 2f6d 6574 7269 6373 ..+.GET./metrics
0x0040: 2048 5454 502f 312e 310d 0a48 6f73 743a .HTTP/1.1..Host:
0x0050: 2031 302e xxxx xx2e xxxx xx2e 313a 3931 .10.xxx.xxx.1:91
0x0060: 3134 0d0a 5573 6572 2d41 6765 6e74 3a20 14..User-Agent:.
0x0070: 5072 6f6d 6574 6865 7573 2f32 2e34 392e Prometheus/2.49.
0x0080: 300d 0a41 6363 6570 743a 2061 7070 6c69 0..Accept:.appli
0x0090: 6361 7469 6f6e 2f6f 7065 6e6d 6574 7269 cation/openmetri
0x00a0: 6373 2d74 6578 743b 7665 7273 696f 6e3d cs-text;version=
0x00b0: 312e 302e 303b 713d 302e 352c 6170 706c 1.0.0;q=0.5,appl
0x00c0: 6963 6174 696f 6e2f 6f70 656e 6d65 7472 ication/openmetr
0x00d0: 6963 732d 7465 7874 3b76 6572 7369 6f6e ics-text;version
0x00e0: 3d30 2e30 2e31 3b71 3d30 2e34 2c74 6578 =0.0.1;q=0.4,tex
0x00f0: 742f 706c 6169 6e3b 7665 7273 696f 6e3d t/plain;version=
0x0100: 302e 302e 343b 713d 302e 332c 2a2f 2a3b 0.0.4;q=0.3,*/*;
0x0110: 713d 320d 0a41 6363 6570 742d 456e 636f q=2..Accept-Enco
0x0120: 6469 6e67 3a20 677a 6970 0d0a 582d 5072 ding:.gzip..X-Pr
0x0130: 6f6d 6574 6865 7573 2d53 6372 6170 652d ometheus-Scrape-
0x0140: 5469 6d65 6f75 742d 5365 636f 6e64 733a Timeout-Seconds:
0x0150: 2031 300d 0a0d 0a .10....
Unfortunately, this breaks all Spring-Boot-based targets...
from prometheus.
I have identified an issue related to the Accept
header in the outgoing requests for metrics in Prometheus. The current format of the Accept
header is as follows:
application/openmetrics-text;version=1.0.0;q=0.5,application/openmetrics-text;version=0.0.1;q=0.4,text/plain;version=0.0.4;q=0.3,*/*;q=2
When using this header with a q=2
value for the wildcard (*/*
), the server returns a 406 error. However, when I modify the final "q=2" value to be below 1, the curl
request succeeds.
I am seeking guidance on how to adjust the Accept
headers in Prometheus to avoid the 406 error. Specifically, I would like to understand the correct format or configuration to ensure successful scraping.
Thank you for your assistance in resolving this issue.
from prometheus.
I reverted to the 2.48.1 release to avoid this issue.
#13313
from prometheus.
Related Issues (20)
- nhcb: write basic unit tests for custom histograms and implement HOT 2
- nhcb: add global and scrape level convert_classic_histograms option
- Sometimes Prometheus's query_range API not returning data due to the step count value
- How to do the aggregation (hourly, daily) for the gauge metrics in prometheus. HOT 1
- Add Created Timestamp to Prometheus/OpenMetrics Text Format HOT 7
- `promtool check service-discovery` always waits for full timeout period HOT 5
- prometheus agent must not be restarted when remote write server is down for long time HOT 7
- Publish Minor Version Tags to Docker HOT 5
- Prometheus agent mode does not send the samples which were not sent when restarted HOT 1
- Configurable shardedPostings sharding function HOT 2
- Flaky TestAsyncRuleEvaluation HOT 6
- Config support disable staleness track HOT 3
- Native histograms: do not remote write exemplar if native histogram series is not sent HOT 2
- Dockerized Promtheus run into "rename data/chunks_head/000021.tmp: Operation not permitted" error
- scrape: Add more tests validating HTTP requests made on scrape (and their headers) HOT 3
- Provide docker image of wasm HOT 3
- Inaccessible data disk may cause prometheus panic HOT 1
- Vulnerability Flagged from govulncheck HOT 1
- Convert existing native histogram unit tests to the PromQL testing framework HOT 4
- UTF-8: Update typescript parser to support new syntax HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus.