Support for customized scrape endpoint instead of hard coded "/metrics"
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.
That's not hardcoded, it should just work.
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
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)