PushProx icon indicating copy to clipboard operation
PushProx copied to clipboard

Support for customized scrape endpoint instead of hard coded "/metrics"

Open jtorkkel opened this issue 6 years ago • 4 comments

In SpringBoot based uservices Prometheus endpoint is not necessary /metric but is is configured to something like /xx/prometheus. If health check use xx/status it is not possible to remove /xx prefix without breaking the health. PushProx should provide command line parameter to configure non default metrics endpoint.

jtorkkel avatar Aug 22 '19 06:08 jtorkkel

That's not hardcoded, it should just work.

brian-brazil avatar Aug 22 '19 08:08 brian-brazil

I see, I thought it was reason for not getting it working. I still do not get PushProx working in real environment, somehow relates to FQDN, I think I managed to get it working in localhost using localhost as --fqdn but does not get it working with real fqdn. client --proxy-url=http://localhost:8080/ --log.level=info --fqdn="localhost"

What is the client -- fqdn parameter ?

  • is it the same fqdn used in prometheus scrape config ?
  • can fixed IP-address used instead of fqdn name? at least 127.0.0.1 did not work in my local seup

jtorkkel avatar Aug 24 '19 17:08 jtorkkel

Not sure if this is exactly your solution, but if you use a fqdn for the client which resolves to the host on which the client runs and inside the host resolves to localhost (using /etc/hosts) I solved issues especially when having a reverse proxy between the push client and push proxy. Fixed IP will not work as the client will try to scrape the fixed IP (not possible unless you expose the scraped service)

glaslos avatar Sep 30 '19 13:09 glaslos