-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
more complete configuration examples #119
Comments
Current setup and symptoms:
....
..results in metrics data from the proxy. B doesn't scrape C and eventually garbage collection cleans out C's entry from clients list. Only keepalive traffic between B and C is seen while scrape attempts are performed from A to C via pushprox-proxy running on B. ....
|
After furious debugging on this many-moving-things solution, it seems to be boiling down to nginx chopping away part of the request, ie.
..which naturally didn't work in satisfactory manner at all. After sacrificing some working mans sweat to the search engines, this was found: https://stackoverflow.com/questions/5834025/how-to-preserve-request-url-with-nginx-proxy-pass/45074723#45074723 nginx:
for prometheus:
|
Hello @hoppedmalt After adding the annotation nginx.ingress.kubernetes.io/proxy-read-timeout: "3600", I was able to see registered clients on the PushProx. However, after some time, they disappeared, and it looks like that was done by the garbage collector as you said. My main error is that I'm receiving a 404 when Prometheus is reaching PushProx. |
I've wrestled with wrapping together nginx for ssl wrapping, pushprox-proxy and -client; there apparently are some landmines that I am dancing on, but as there is no audible feedback like in real life, I have hard time telling when and where I took wrong turn.
Testing with curl:
proxyhost -> proxyclient/proxyclienthost: metrics about pushprox-client
proxyclienthost -> proxyclient/proxyclienthost: metrics about pushprox-client
proxyclienthost -> node_exporter/proxyclienthost: actual metrics
On startup, the pushprox-client manages to register with pushprox-proxy, but the garbage collection cycle cleans up the registration after a while. No actual data seems to be transmitted from node_exporter anywhere.
It would be really useful to have complete working configuration example as a starting point. Also, I would expect loglevel "debug" being at least slightly more verbose than "info", preferrably being very verbose on what the software is currently doing, what is failing and why.
The text was updated successfully, but these errors were encountered: