Comments (3)
It should work like a charm just add the header "X-Prometheus-Scrape-Timeout-Seconds"
curl -v --proxy http://test.local:8080 \
-H "X-Prometheus-Scrape-Timeout-Seconds: 5" \
http://test.local:9100/
I had always considered it a bug that the proxy requires this header (there is no default and no test cases if the header is not set), but we get used to it!
from pushprox.
I had always considered it a bug that the proxy requires this header (there is no default and no test cases if the header is not set), but we get used to it!
In fact, after digging a little deeper into the scenario, it is not directly the pushprox_proxy which responds with the error message but the node_exporter: the node_exporter also expects the "X-Prometheus-Scrape-Timeout-Seconds" header and as it is not present and the case is obviously not foreseen, this triggers an error. The absence is foreseen in the pushprox and a value is set (--scrape.default-timeout=15s)
Maybe a fix should be to force the header with the default value when it is not provided by the original query.
I will try to make a PR with that solution.
from pushprox.
@peekjef72 that quick fix would probably be quite an improvement here.
What is most confusing is that calling curl http://0.0.0.0:9100/metrics
responds with metrics without any issue, so one is not expecting that header to be required.
from pushprox.
Related Issues (20)
- Cleanup errcheck issues
- Is the PushProx client itself able to use a web proxy to reach the remote PushProx server?
- Scraping more then one exporter. HOT 5
- Add support for http_sd_configs HOT 2
- "malformed HTTP request \"\"" HOT 5
- more complete configuration examples HOT 3
- Become a library HOT 2
- It is very difficult to cowork with nginx. HOT 1
- Is this project still maintained? HOT 1
- Remediation for CircleCL security incident HOT 2
- How to pass ldflags while creating the build ?
- PushProx is using fqdn.get() which is deprecated
- How to scrape metrics from not /metrics endpoint? HOT 2
- Scraping multiple exporters via pushprox HOT 1
- Getting errors regarding "component" and "CRDs" when trying to install PushProxy with helm chart HOT 1
- Scrap control plane
- Add option for clients to forward requests from the host IP to 127.0.0.1 HOT 2
- /clients behavior : fqdn disappear
- fqdn must be set to the hostname
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 pushprox.