Skip to content
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

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

Open
jtorkkel opened this issue Aug 22, 2019 · 4 comments
Open

Comments

@jtorkkel
Copy link

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.

@brian-brazil
Copy link
Contributor

That's not hardcoded, it should just work.

@jtorkkel
Copy link
Author

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

@glaslos
Copy link
Contributor

glaslos commented Sep 30, 2019

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)

@paul-dsh-ct
Copy link

Hey,

Take a look at my answer here: #159

Hope it can help you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants